Record Class HistoryCheckpoint.DiffEntry
java.lang.Object
java.lang.Record
net.mcreator.workspace.localhistory.HistoryCheckpoint.DiffEntry
- Enclosing class:
HistoryCheckpoint
public static record HistoryCheckpoint.DiffEntry(HistoryCheckpoint.ChangeType changeType, String affectedPath)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDiffEntry(HistoryCheckpoint.ChangeType changeType, String affectedPath) Creates an instance of aDiffEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaffectedPathrecord component.Returns the value of thechangeTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiffEntry
Creates an instance of aDiffEntryrecord class.- Parameters:
changeType- the value for thechangeTyperecord componentaffectedPath- the value for theaffectedPathrecord component
-
-
Method Details
-
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). -
changeType
Returns the value of thechangeTyperecord component.- Returns:
- the value of the
changeTyperecord component
-
affectedPath
Returns the value of theaffectedPathrecord component.- Returns:
- the value of the
affectedPathrecord component
-