Record Class AcquisitionCheckpointStore.State
java.lang.Object
java.lang.Record
ecmwf.common.database.AcquisitionCheckpointStore.State
- Enclosing class:
AcquisitionCheckpointStore
public static record AcquisitionCheckpointStore.State(long sequence, long inventoryAt)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionState(long sequence, long inventoryAt) Creates an instance of aStaterecord 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.longReturns the value of theinventoryAtrecord component.longsequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
State
public State(long sequence, long inventoryAt) Creates an instance of aStaterecord class.- Parameters:
sequence- the value for thesequencerecord componentinventoryAt- the value for theinventoryAtrecord 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 with thecomparemethod from their corresponding wrapper classes. -
sequence
public long sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
inventoryAt
public long inventoryAt()Returns the value of theinventoryAtrecord component.- Returns:
- the value of the
inventoryAtrecord component
-