public class Blames extends Object implements Serializable
| Constructor and Description |
|---|
Blames() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(FileBlame additionalBlame)
Adds the specified blame to this collection of blames.
|
void |
addAll(Blames other)
Merges all specified blames with the current set of blames.
|
boolean |
contains(String fileName)
Returns whether the specified file already has been added.
|
FileBlame |
get(String fileName)
Returns the blames for the specified file.
|
List<String> |
getErrorMessages() |
Collection<FileBlame> |
getFileBlames()
Returns all stored requests.
|
Set<String> |
getFiles()
Returns the absolute file names of the affected files that will be processed by Git blame.
|
List<String> |
getInfoMessages() |
boolean |
isEmpty()
Returns whether there are files with blames in this instance.
|
void |
logError(String format,
Object... args)
Logs the specified error message.
|
void |
logException(Exception exception,
String format,
Object... args)
Logs the specified exception.
|
void |
logInfo(String format,
Object... args)
Logs the specified information message.
|
void |
logSummary()
Writes a summary message to the reports' error log that denotes the total number of errors that have been
reported.
|
int |
size()
Returns the number of files that have been added to this instance.
|
public boolean isEmpty()
true if there a no blames available, false otherwisepublic int size()
public boolean contains(String fileName)
fileName - the name of the filetrue if the file already has been added, false otherwisepublic Set<String> getFiles()
public Collection<FileBlame> getFileBlames()
public FileBlame get(String fileName)
fileName - absolute file nameNoSuchElementException - if the file name is not registeredpublic void add(FileBlame additionalBlame)
additionalBlame - the blame to addpublic void addAll(Blames other)
other - the blames to add@FormatMethod public void logInfo(String format, Object... args)
format - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be
zero.@FormatMethod public void logError(String format, Object... args)
format - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be
zero.@FormatMethod public void logException(Exception exception, String format, Object... args)
exception - the exception to logformat - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be
zero.public void logSummary()
Copyright © 2016–2019. All rights reserved.