Klasse FileChanges

java.lang.Object
io.jenkins.plugins.forensics.delta.FileChanges
Alle implementierten Schnittstellen:
Serializable

public class FileChanges extends Object implements Serializable
Wraps all changes made to one specific file.
Autor:
Florian Orendi
Siehe auch:
  • 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 file
      oldFileName - The old file name before the edit
      fileContent - The content of the file
      fileEditType - The change type how the file has been affected
      changes - The changes made to the file
  • Methodendetails

    • getFileName

      public String getFileName()
    • getOldFileName

      public String getOldFileName()
    • getFileContent

      public String getFileContent()
    • getFileEditType

      public FileEditType getFileEditType()
    • getChanges

      public Map<ChangeEditType,Set<Change>> getChanges()
    • getChangesByType

      public Set<Change> getChangesByType(ChangeEditType changeEditType)
      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

      public void addChange(Change change)
      Adds information about a change and stores it according to the type of edit.
      Parameter:
      change - The change to be stored
    • getModifiedLines

      public Set<Integer> getModifiedLines()
      Returns all modified lines in this changed file.
      Gibt zurück:
      the modified line
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object