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 collection of blames.
|
boolean |
contains(String fileName)
Returns whether there are blames for the specified file.
|
FileBlame |
getBlame(String fileName)
Returns the blame information for the specified file.
|
List<String> |
getErrorMessages() |
Set<String> |
getFiles()
Returns all files with blames.
|
List<String> |
getInfoMessages() |
boolean |
isEmpty()
Returns whether there are files with blames.
|
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.
|
protected Object |
readResolve()
Called after de-serialization to retain backward compatibility.
|
int |
size()
Returns the number of files with blames.
|
public void add(FileBlame additionalBlame)
additionalBlame - the blame to addpublic void addAll(Blames other)
other - the blames to addpublic boolean isEmpty()
true if there a no blames available, false otherwisepublic int size()
public boolean contains(String fileName)
fileName - the relative or absolute path of the filetrue if the file already has been added, false otherwisepublic Set<String> getFiles()
public FileBlame getBlame(String fileName)
fileName - the absolute path of the fileNoSuchElementException - if the file name is not registered@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()
protected Object readResolve()
Copyright © 2016–2019. All rights reserved.