Record Class HistoryCheckpoint
java.lang.Object
java.lang.Record
net.mcreator.workspace.localhistory.HistoryCheckpoint
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionHistoryCheckpoint(String hash, String name, int timestamp, Supplier<Future<List<HistoryCheckpoint.DiffEntry>>> diffFutureSupplier) Creates an instance of aHistoryCheckpointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediffFutureSupplierrecord component.final booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HistoryCheckpoint
public HistoryCheckpoint(String hash, String name, int timestamp, Supplier<Future<List<HistoryCheckpoint.DiffEntry>>> diffFutureSupplier) Creates an instance of aHistoryCheckpointrecord class.- Parameters:
hash- the value for thehashrecord componentname- the value for thenamerecord componenttimestamp- the value for thetimestamprecord componentdiffFutureSupplier- the value for thediffFutureSupplierrecord component
-
-
Method Details
-
getTimestampString
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
timestamp
public int timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
diffFutureSupplier
Returns the value of thediffFutureSupplierrecord component.- Returns:
- the value of the
diffFutureSupplierrecord component
-