Record Class SnapshotStore.StagedSnapshot
java.lang.Object
java.lang.Record
com.loomcache.server.persistence.SnapshotStore.StagedSnapshot
- Enclosing class:
SnapshotStore
-
Constructor Summary
ConstructorsConstructorDescriptionStagedSnapshot(long index, long term, Path path) Creates an instance of aStagedSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longindex()Returns the value of theindexrecord component.path()Returns the value of thepathrecord component.longterm()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StagedSnapshot
Creates an instance of aStagedSnapshotrecord class.- Parameters:
index- the value for theindexrecord componentterm- the value for thetermrecord componentpath- the value for thepathrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
index
public long index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
term
public long term()Returns the value of thetermrecord component.- Returns:
- the value of the
termrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-