public enum StandardContextType extends Enum<StandardContextType> implements ContextType
ContextType
.Enum Constant and 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.
|
Modifier and Type | Method and Description |
---|---|
Context |
create()
Create the initial instance of the
Context . |
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.
|
public static final StandardContextType SUM_COUNT
public static final StandardContextType MIN_MAX
public static final StandardContextType PRODUCT
public static final StandardContextType VARIANCE
public static StandardContextType[] values()
for (StandardContextType c : StandardContextType.values()) System.out.println(c);
public static StandardContextType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Context create()
ContextType
Context
.create
in interface ContextType
public static Context<?> create(int ordinal)
Copyright © 2017. All rights reserved.