Klasse FileChanges
java.lang.Object
io.jenkins.plugins.forensics.delta.FileChanges
- Alle implementierten Schnittstellen:
Serializable
Wraps all changes made to one specific file.
- Autor:
- Florian Orendi
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungFileChanges
(String fileName, String oldFileName, String fileContent, FileEditType fileEditType, Map<ChangeEditType, Set<Change>> changes) Constructor for an instance which wraps all changes made to a specific file. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Adds information about a change and stores it according to the type of edit.boolean
getChangesByType
(ChangeEditType changeEditType) Returns information about changes of a specified type.Returns all modified lines in this changed file.int
hashCode()
-
Konstruktordetails
-
FileChanges
public FileChanges(String fileName, String oldFileName, String fileContent, FileEditType fileEditType, Map<ChangeEditType, Set<Change>> changes) Constructor for an instance which wraps all changes made to a specific file.- Parameter:
fileName
- The name of the fileoldFileName
- The old file name before the editfileContent
- The content of the filefileEditType
- The change type how the file has been affectedchanges
- The changes made to the file
-
-
Methodendetails
-
getFileName
-
getOldFileName
-
getFileContent
-
getFileEditType
-
getChanges
-
getChangesByType
Returns information about changes of a specified type.- Parameter:
changeEditType
- The edit type- Gibt zurück:
- the information about changes of the specified type
-
addChange
Adds information about a change and stores it according to the type of edit.- Parameter:
change
- The change to be stored
-
getModifiedLines
Returns all modified lines in this changed file.- Gibt zurück:
- the modified line
-
equals
-
hashCode
public int hashCode()
-