Package io.keikai.axyra.sheets
Record Class PivotTopNFilter
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.PivotTopNFilter
- Record Components:
dataField- 0-based values-area position supplying the aggregatesvalue- N in count mode; in percent mode the percent of the total, 0 to 100 (10 means 10 %)byPercent- percent mode vs item countbottom- keep the bottom instead of the top
public record PivotTopNFilter(int dataField, double value, boolean byPercent, boolean bottom)
extends Record
The Top-N ("Top 10") filter of a pivot row/column field, read back via
PivotTableView.topNFilter(String): items rank by their aggregate
of a values-area entry and only the top (or bottom) value items /
percent survive a refresh.-
Constructor Summary
ConstructorsConstructorDescriptionPivotTopNFilter(int dataField, double value, boolean byPercent, boolean bottom) Creates an instance of aPivotTopNFilterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbottom()Returns the value of thebottomrecord component.booleanReturns the value of thebyPercentrecord component.intReturns the value of thedataFieldrecord 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.doublevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
PivotTopNFilter
public PivotTopNFilter(int dataField, double value, boolean byPercent, boolean bottom) Creates an instance of aPivotTopNFilterrecord class.
-
-
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 '=='. -
dataField
public int dataField()Returns the value of thedataFieldrecord component.- Returns:
- the value of the
dataFieldrecord component
-
value
public double value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
byPercent
public boolean byPercent()Returns the value of thebyPercentrecord component.- Returns:
- the value of the
byPercentrecord component
-
bottom
public boolean bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the
bottomrecord component
-