Package io.keikai.axyra.sheets
Enum Class TotalsRowFunction
- All Implemented Interfaces:
Serializable,Comparable<TotalsRowFunction>,Constable
Table totals-row aggregation (ECMA-376 §18.18.92 ST_TotalsRowFunction).
The built-in kinds map to the
SUBTOTAL(101..110, …) formulas Excel
writes into the totals-row cell; CUSTOM carries an explicit
formula.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSUBTOTAL(101, column): mean of the visible values.SUBTOTAL(103, column): COUNTA, the number of non-empty visible cells.SUBTOTAL(102, column): COUNT, the number of numeric visible cells.The caller's own formula, written unchanged into the totals-row cell.SUBTOTAL(104, column): largest visible value.SUBTOTAL(105, column): smallest visible value.No total; the totals-row cell holds no formula.SUBTOTAL(107, column): sample standard deviation of the visible values.SUBTOTAL(109, column): sum of the visible values.SUBTOTAL(110, column): sample variance of the visible values. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the ECMA-376 token for this function, e.g.static TotalsRowFunctionReturns the enum constant of this class with the specified name.static TotalsRowFunction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No total; the totals-row cell holds no formula. -
SUM
SUBTOTAL(109, column): sum of the visible values. -
MIN
SUBTOTAL(105, column): smallest visible value. -
MAX
SUBTOTAL(104, column): largest visible value. -
AVERAGE
SUBTOTAL(101, column): mean of the visible values. -
COUNT
SUBTOTAL(103, column): COUNTA, the number of non-empty visible cells. -
COUNT_NUMS
SUBTOTAL(102, column): COUNT, the number of numeric visible cells. -
STD_DEV
SUBTOTAL(107, column): sample standard deviation of the visible values. -
VAR
SUBTOTAL(110, column): sample variance of the visible values. -
CUSTOM
The caller's own formula, written unchanged into the totals-row cell.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
code
Returns the ECMA-376 token for this function, e.g."sum".
-