Record Class GitSource.Change
java.lang.Object
java.lang.Record
network.ike.docs.plugin.diff.GitSource.Change
- Record Components:
status- the change statusoldPath- the from-side path (equal tonewPathexcept for renames;nullfor additions)newPath- the to-side path (nullfor deletions)
- Enclosing class:
GitSource
public static record GitSource.Change(ChangeStatus status, String oldPath, String newPath)
extends Record
One changed file between the two sides.
-
Constructor Summary
ConstructorsConstructorDescriptionChange(ChangeStatus status, String oldPath, String newPath) Creates an instance of aChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionThe path a reader should know this file by — the to side when present, otherwise the from side.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.newPath()Returns the value of thenewPathrecord component.oldPath()Returns the value of theoldPathrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Change
-
-
Method Details
-
displayPath
The path a reader should know this file by — the to side when present, otherwise the from side.- Returns:
- the display path
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
status
-
oldPath
-
newPath
-