Package org.rumbledb.runtime.misc
Record Class RangeOperationIterator.Bounds
java.lang.Object
java.lang.Record
org.rumbledb.runtime.misc.RangeOperationIterator.Bounds
- All Implemented Interfaces:
Serializable
- Enclosing class:
- RangeOperationIterator
public static record RangeOperationIterator.Bounds(BigInteger first, BigInteger last)
extends Record
implements Serializable
Exact inclusive endpoints; an empty range has first greater than last.
xs:integer can exceed Java's long range. Keep endpoints exact for generation,
counting, comparisons, and subsequence slicing; longValue() would silently wrap them.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBounds(long first, long last) Bounds(BigInteger first, BigInteger last) Creates an instance of aBoundsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.first()Returns the value of thefirstrecord component.booleanfitsLong()booleanfinal inthashCode()Returns a hash code value for this object.items()last()Returns the value of thelastrecord component.size()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Bounds
public Bounds(long first, long last) -
Bounds
Creates an instance of aBoundsrecord class.- Parameters:
first- the value for thefirstrecord componentlast- the value for thelastrecord component
-
-
Method Details
-
size
-
fitsLong
public boolean fitsLong() -
fitsSparkPrecision
public boolean fitsSparkPrecision() -
items
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
first
Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
last
Returns the value of thelastrecord component.- Returns:
- the value of the
lastrecord component
-