Class Blames
java.lang.Object
io.jenkins.plugins.forensics.blame.Blames
- All Implemented Interfaces:
Serializable
Provides access to the blame information for a collection of workspace files. File names must use absolute paths.
Additionally, info and error messages during the SCM processing can be stored.
- Author:
- Ullrich Hafner
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified blame to this collection of blames.voidMerges all specified blames with the current collection of blames.booleanReturns whether there are blames for the specified file.booleanReturns the blame information for the specified file.getFiles()Returns all files with blames.inthashCode()booleanisEmpty()Returns whether there are files with blames.intsize()Returns the number of files with blames.
-
Constructor Details
-
Blames
public Blames()
-
-
Method Details
-
add
Adds the specified blame to this collection of blames.- Parameters:
additionalBlame- the blame to add
-
addAll
Merges all specified blames with the current collection of blames.- Parameters:
other- the blames to add
-
isEmpty
public boolean isEmpty()Returns whether there are files with blames.- Returns:
trueif there a no blames available,falseotherwise
-
size
public int size()Returns the number of files with blames.- Returns:
- number of affected files with blames
-
contains
Returns whether there are blames for the specified file.- Parameters:
fileName- the relative or absolute path of the file- Returns:
trueif the file already has been added,falseotherwise
-
getFiles
Returns all files with blames.- Returns:
- the files with blames
-
getBlame
Returns the blame information for the specified file.- Parameters:
fileName- the absolute path of the file- Returns:
- the blame information for the specified file.
- Throws:
NoSuchElementException- if the file name is not registered
-
equals
-
hashCode
public int hashCode()
-