Package org.zkoss.pivot.impl
Enum StandardContextType
- java.lang.Object
-
- java.lang.Enum<StandardContextType>
-
- org.zkoss.pivot.impl.StandardContextType
-
- All Implemented Interfaces:
Serializable
,Comparable<StandardContextType>
,ContextType
public enum StandardContextType extends Enum<StandardContextType> implements ContextType
The built-in collection ofContextType
.- Author:
- simonpai
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MIN_MAX
The context that stores minimum and maximum values.PRODUCT
The context that stores arithmetic product.SUM_COUNT
The context thats stores sum, count and number count.VARIANCE
The context that stores sum, sum of square and number count.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Context
create()
Create the initial instance of theContext
.static Context<?>
create(int ordinal)
Create the context by the enum ordinal.static StandardContextType
valueOf(String name)
Returns the enum constant of this type with the specified name.static StandardContextType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUM_COUNT
public static final StandardContextType SUM_COUNT
The context thats stores sum, count and number count.
-
MIN_MAX
public static final StandardContextType MIN_MAX
The context that stores minimum and maximum values.
-
PRODUCT
public static final StandardContextType PRODUCT
The context that stores arithmetic product.
-
VARIANCE
public static final StandardContextType VARIANCE
The context that stores sum, sum of square and number count.
-
-
Method Detail
-
values
public static StandardContextType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StandardContextType c : StandardContextType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StandardContextType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public Context create()
Description copied from interface:ContextType
Create the initial instance of theContext
.- Specified by:
create
in interfaceContextType
-
create
public static Context<?> create(int ordinal)
Create the context by the enum ordinal.
-
-