Package io.keikai.axyra.sheets
Record Class PivotField
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.PivotField
- Record Components:
name- the source column namesourceIndex- the 0-based source column index in the pivot cacheaggregation- the aggregate function (data fields;nullfor row / column / filter fields)customName- the explicit caption override, ornullwhen the default caption applies. For data fields this isdataField@name(ECMA-376 Part 1 §18.10.1.18); for row / column / filter fields it is thepivotField@namedisplay rename (§18.10.1.69, set viaPivotTableView.setRowFieldCaption(int, java.lang.String))displayName- the resolved caption —customNamewhen set, otherwise the "Sum of Sales"-style default for data fields, ornamefor row / column / filter fieldsshowSubtotals- whether subtotals are shown for this field (ECMA-376 Part 1 §18.10.1.69defaultSubtotal)
public record PivotField(String name, int sourceIndex, AggregateFunction aggregation, String customName, String displayName, boolean showSubtotals)
extends Record
One placed pivot field, as returned by the
PivotTableView area
read-backs (rowFields(), columnFields(),
dataFields(), filterFields()).-
Constructor Summary
ConstructorsConstructorDescriptionPivotField(String name, int sourceIndex, AggregateFunction aggregation, String customName, String displayName, boolean showSubtotals) Creates an instance of aPivotFieldrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationrecord component.Returns the value of thecustomNamerecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanReturns the value of theshowSubtotalsrecord component.intReturns the value of thesourceIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PivotField
public PivotField(String name, int sourceIndex, AggregateFunction aggregation, String customName, String displayName, boolean showSubtotals) Creates an instance of aPivotFieldrecord class.- Parameters:
name- the value for thenamerecord componentsourceIndex- the value for thesourceIndexrecord componentaggregation- the value for theaggregationrecord componentcustomName- the value for thecustomNamerecord componentdisplayName- the value for thedisplayNamerecord componentshowSubtotals- the value for theshowSubtotalsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
sourceIndex
public int sourceIndex()Returns the value of thesourceIndexrecord component.- Returns:
- the value of the
sourceIndexrecord component
-
aggregation
Returns the value of theaggregationrecord component.- Returns:
- the value of the
aggregationrecord component
-
customName
Returns the value of thecustomNamerecord component.- Returns:
- the value of the
customNamerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
showSubtotals
public boolean showSubtotals()Returns the value of theshowSubtotalsrecord component.- Returns:
- the value of the
showSubtotalsrecord component
-