|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<StandardCalculator>
org.zkoss.pivot.impl.StandardCalculator
public enum StandardCalculator
The built-in Calculator set for TabularPivotModel.
| Enum Constant Summary | |
|---|---|
AVERAGE
Calculates the arithmetic average of data. |
|
COUNT
Returns the count of data, including non-number entries. |
|
COUNT_NUMBER
Returns the count of numerical data. |
|
MAX
Calculates the maximum of data. |
|
MIN
Calculates the minimum of data. |
|
PRODUCT
Returns the arithmetic product of data. |
|
STD_DEV
Returns the sample standard deviation. |
|
STD_DEV_P
Returns the standard deviation of the sample. |
|
SUM
Returns the arithmetic sum of data. |
|
SUM_OR_COUNT
Returns the sum of data if the data entries are all numeric. |
|
VARIANCE
Returns the variance corresponding to the sample standard deviation. |
|
VARIANCE_P
Returns the variance corresponding to the standard deviation of the sample. |
|
| Method Summary | |
|---|---|
StandardContextType |
getContextType()
Get the ContextType. |
java.lang.String |
getLabel()
|
java.lang.String |
getLabelKey()
|
java.lang.Number |
getResult(Context context)
Retrieve the aggregation result from the context. |
static StandardCalculator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static StandardCalculator[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final StandardCalculator SUM
public static final StandardCalculator COUNT
public static final StandardCalculator AVERAGE
public static final StandardCalculator MAX
public static final StandardCalculator MIN
public static final StandardCalculator SUM_OR_COUNT
public static final StandardCalculator COUNT_NUMBER
public static final StandardCalculator PRODUCT
public static final StandardCalculator STD_DEV
public static final StandardCalculator STD_DEV_P
public static final StandardCalculator VARIANCE
public static final StandardCalculator VARIANCE_P
| Method Detail |
|---|
public static StandardCalculator[] values()
for (StandardCalculator c : StandardCalculator.values()) System.out.println(c);
public static StandardCalculator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.Number getResult(Context context)
ContextualCalculator
getResult in interface ContextualCalculatorpublic StandardContextType getContextType()
ContextualCalculatorContextType.
getContextType in interface ContextualCalculatorpublic java.lang.String getLabel()
getLabel in interface Calculatorpublic java.lang.String getLabelKey()
getLabelKey in interface Calculator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||