Record Class GroupingPos
java.lang.Object
java.lang.Record
org.rumbledb.runtime.functions.util.formatting.GroupingPos
- Record Components:
distanceFromAnchor- Digit signs between the separator and the edge grouping is measured from: the right for an integer part, the left for a fractional part.
-
Constructor Summary
ConstructorsConstructorDescriptionGroupingPos(int distanceFromAnchor, int separatorCP) Creates an instance of aGroupingPosrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedistanceFromAnchorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theseparatorCPrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
GroupingPos
public GroupingPos(int distanceFromAnchor, int separatorCP) Creates an instance of aGroupingPosrecord class.- Parameters:
distanceFromAnchor- the value for thedistanceFromAnchorrecord componentseparatorCP- the value for theseparatorCPrecord component
-
-
Method Details
-
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 with '=='. -
distanceFromAnchor
public int distanceFromAnchor()Returns the value of thedistanceFromAnchorrecord component.- Returns:
- the value of the
distanceFromAnchorrecord component
-
separatorCP
public int separatorCP()Returns the value of theseparatorCPrecord component.- Returns:
- the value of the
separatorCPrecord component
-