Klasse Change

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

public class Change extends Object implements Serializable
A change made on specific lines within a specific file.

The interval of lines which contains the change is defined by a starting and an ending point (1-based line counter). Also, the affected lines of the file before the change has been inserted are specified by a starting and an ending point, as already described, in order to be able to determine removed lines for example.

Autor:
Florian Orendi
Siehe auch:
  • Konstruktordetails

    • Change

      public Change(ChangeEditType changeEditType, int changedFromLine, int changedToLine, int fromLine, int toLine)
      Constructor for an instance which wraps a specific change within a file.
      Parameter:
      changeEditType - The type of the change
      changedFromLine - The starting line of the lines which are affected by the change
      changedToLine - The ending line of the lines which are affected by the change
      fromLine - The starting line of the inserted change
      toLine - The ending line of the inserted change
  • Methodendetails

    • getEditType

      public ChangeEditType getEditType()
    • getChangedFromLine

      public int getChangedFromLine()
    • getChangedToLine

      public int getChangedToLine()
    • getFromLine

      public int getFromLine()
    • getToLine

      public int getToLine()
    • 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