Package io.keikai.axyra.sheets
Record Class PivotFieldGroup
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.PivotFieldGroup
- Record Components:
dateBy- the date component, or null for a numeric groupingstart- the numeric range start (0 for date groupings)end- the numeric range end (0 for date groupings)interval- the numeric bin width (0 for date groupings)
public record PivotFieldGroup(PivotDateGroupBy dateBy, double start, double end, double interval)
extends Record
The grouping of a pivot row/column field, read back via
PivotTableView.fieldGroup(String): either a date-component
grouping (dateBy() non-null) or numeric range bins.-
Constructor Summary
ConstructorsConstructorDescriptionPivotFieldGroup(PivotDateGroupBy dateBy, double start, double end, double interval) Creates an instance of aPivotFieldGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptiondateBy()Returns the value of thedateByrecord component.doubleend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleinterval()Returns the value of theintervalrecord component.booleanisDate()Whether this is a date-component grouping (vs numeric bins).doublestart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isDate
public boolean isDate()Whether this is a date-component grouping (vs numeric bins). -
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 '=='. -
dateBy
Returns the value of thedateByrecord component.- Returns:
- the value of the
dateByrecord component
-
start
public double start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public double end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
interval
public double interval()Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-