Package io.keikai.axyra.sheets
Record Class PivotFieldSort
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.PivotFieldSort
- Record Components:
ascending-truefor ascending order,falsefor descendingbyValueDataField- 0-based values-area position driving a by-value sort, or-1for a label sort; it may point past the current values area when the sort was declared before the data fields were added
The declared sort of a pivot row/column field, read back via
PivotTableView.fieldSort(String).-
Constructor Summary
ConstructorsConstructorDescriptionPivotFieldSort(boolean ascending, int byValueDataField) Creates an instance of aPivotFieldSortrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theascendingrecord component.booleanbyValue()Whether items sort by a data field's aggregate (vs.intReturns the value of thebyValueDataFieldrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PivotFieldSort
public PivotFieldSort(boolean ascending, int byValueDataField) Creates an instance of aPivotFieldSortrecord class.- Parameters:
ascending- the value for theascendingrecord componentbyValueDataField- the value for thebyValueDataFieldrecord component
-
-
Method Details
-
byValue
public boolean byValue()Whether items sort by a data field's aggregate (vs. by label). -
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 '=='. -
ascending
public boolean ascending()Returns the value of theascendingrecord component.- Returns:
- the value of the
ascendingrecord component
-
byValueDataField
public int byValueDataField()Returns the value of thebyValueDataFieldrecord component.- Returns:
- the value of the
byValueDataFieldrecord component
-