Klasse Delta
java.lang.Object
io.jenkins.plugins.forensics.delta.Delta
- Alle implementierten Schnittstellen:
Serializable
Data class that represents the code difference - so called 'delta' - between two commits.
- Autor:
- Florian Orendi
- Siehe auch:
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addFileChanges
(String fileId, FileChanges fileChange) Adds information about changes made to the specified file.boolean
getFileChangesById
(String fileId) Returns information about changes made to the specified file.int
hashCode()
-
Konstruktordetails
-
Delta
Constructor for a delta instance which wraps code changes between the two passed commits.- Parameter:
currentCommit
- The currently processed commitreferenceCommit
- The reference commitfileChangesMap
- The map which contains the changes for modified files, mapped by the file ID.
-
-
Methodendetails
-
getCurrentCommit
-
getReferenceCommit
-
getFileChangesMap
-
getFileChangesById
Returns information about changes made to the specified file.- Parameter:
fileId
- the ID of the file- Gibt zurück:
- the information about changes made to the specified file
- Löst aus:
NoSuchElementException
- if the file ID is not registered
-
addFileChanges
Adds information about changes made to the specified file.If there are already information about changes to the specified file, the old information will be overwritten by the new one.
- Parameter:
fileId
- The ID of the filefileChange
- Information about the made changes
-
equals
-
hashCode
public int hashCode()
-