public static enum Formula.AverageMethod extends Enum<Formula.AverageMethod>
Formula.Type.COLUMN_EXPRESSION
.Enum Constant and Description |
---|
ARITHMETIC_MEAN |
GEOMETRIC_MEAN |
MAX |
MIN |
NONE |
QUADRATIC_MEAN |
Modifier and Type | Field and Description |
---|---|
private String |
displayValue |
private int |
value |
private static Map<Integer,Formula.AverageMethod> |
valueMapping
Maps the integer that is stored in the database.
|
Modifier and Type | Method and Description |
---|---|
static Formula.AverageMethod |
fromValue(int value)
Get the
Formula.AverageMethod object when you know the integer code. |
abstract Expression |
getAverageExpression(Expression e)
Given an expression, create an expression that takes the correct
average of it.
|
int |
getValue()
Get the integer value that is used when storing a
Formula.AverageMethod in the database. |
String |
toString() |
static Formula.AverageMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Formula.AverageMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Formula.AverageMethod NONE
public static final Formula.AverageMethod GEOMETRIC_MEAN
public static final Formula.AverageMethod ARITHMETIC_MEAN
public static final Formula.AverageMethod MIN
public static final Formula.AverageMethod MAX
public static final Formula.AverageMethod QUADRATIC_MEAN
private static final Map<Integer,Formula.AverageMethod> valueMapping
private final int value
private final String displayValue
public static Formula.AverageMethod[] values()
for (Formula.AverageMethod c : Formula.AverageMethod.values()) System.out.println(c);
public static Formula.AverageMethod 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 static Formula.AverageMethod fromValue(int value)
Formula.AverageMethod
object when you know the integer code.value
- The integer value.public abstract Expression getAverageExpression(Expression e)
e
- The expression, null is not allowedpublic int getValue()
Formula.AverageMethod
in the database.public String toString()
toString
in class Enum<Formula.AverageMethod>