Package io.keikai.axyra.sheets
Enum Class SubtotalFunction
- All Implemented Interfaces:
Serializable,Comparable<SubtotalFunction>,Constable
Aggregate function for
Sheet.subtotal(int, int, int, io.keikai.axyra.sheets.SubtotalFunction, int...), by Excel SUBTOTAL
code. The inserted formulas use codes 1 to 11, so rows hidden by hand still
count; rows hidden by a filter do not.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSUBTOTAL 1, AVERAGE: mean of the numbers.SUBTOTAL 2, COUNT: number of numeric cells.SUBTOTAL 3, COUNTA: number of non-empty cells.SUBTOTAL 4, MAX: largest number.SUBTOTAL 5, MIN: smallest number.SUBTOTAL 6, PRODUCT: product of the numbers.SUBTOTAL 7, STDEV: sample standard deviation.SUBTOTAL 8, STDEVP: population standard deviation.SUBTOTAL 9, SUM: total of the numbers.SUBTOTAL 10, VAR: sample variance.SUBTOTAL 11, VARP: population variance. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubtotalFunctionReturns the enum constant of this class with the specified name.static SubtotalFunction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AVERAGE
SUBTOTAL 1, AVERAGE: mean of the numbers. -
COUNT
SUBTOTAL 2, COUNT: number of numeric cells. -
COUNTA
SUBTOTAL 3, COUNTA: number of non-empty cells. -
MAX
SUBTOTAL 4, MAX: largest number. -
MIN
SUBTOTAL 5, MIN: smallest number. -
PRODUCT
SUBTOTAL 6, PRODUCT: product of the numbers. -
STDEV
SUBTOTAL 7, STDEV: sample standard deviation. -
STDEVP
SUBTOTAL 8, STDEVP: population standard deviation. -
SUM
SUBTOTAL 9, SUM: total of the numbers. -
VAR
SUBTOTAL 10, VAR: sample variance. -
VARP
SUBTOTAL 11, VARP: population variance.
-
-
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
-