Record Class TxnId.TxnIdRange
java.lang.Object
java.lang.Record
org.jpos.transaction.TxnId.TxnIdRange
- Record Components:
fromInclusive- inclusive lower bound.toInclusive- inclusive upper bound.
- Enclosing class:
TxnId
Inclusive numeric id range suitable for DB index range scans.
If isEmpty() is true, the range contains no values and callers
should skip querying (or deliberately query a range that returns no results).
-
Constructor Summary
ConstructorsConstructorDescriptionTxnIdRange(long fromInclusive, long toInclusive) Creates an instance of aTxnIdRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TxnId.TxnIdRangeempty()final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefromInclusiverecord component.final inthashCode()Returns a hash code value for this object.booleanisEmpty()longReturns the value of thetoInclusiverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TxnIdRange
Creates an instance of aTxnIdRangerecord class.- Parameters:
fromInclusive- the value for thefromInclusiverecord componenttoInclusive- the value for thetoInclusiverecord component
-
-
Method Details
-
isEmpty
-
empty
-
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. -
fromInclusive
Returns the value of thefromInclusiverecord component.- Returns:
- the value of the
fromInclusiverecord component
-
toInclusive
Returns the value of thetoInclusiverecord component.- Returns:
- the value of the
toInclusiverecord component
-