org.zkoss.pivot.impl
Enum StandardContextType

java.lang.Object
  extended by java.lang.Enum<StandardContextType>
      extended by org.zkoss.pivot.impl.StandardContextType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StandardContextType>, ContextType

public enum StandardContextType
extends java.lang.Enum<StandardContextType>
implements ContextType

The built-in collection of ContextType.

Author:
simonpai

Enum Constant Summary
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
 Context create()
          Create the initial instance of the Context.
static Context<?> create(int ordinal)
          Create the context by the enum ordinal.
static StandardContextType valueOf(java.lang.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.
 
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

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

create

public Context create()
Description copied from interface: ContextType
Create the initial instance of the Context.

Specified by:
create in interface ContextType

create

public static Context<?> create(int ordinal)
Create the context by the enum ordinal.



Copyright © 2013. All Rights Reserved.