|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Formula.AverageMethod>
net.sf.basedb.core.Formula.AverageMethod
public static enum Formula.AverageMethod
The average method used for the values of this formula. The average
is only useful with a Formula.Type.COLUMN_EXPRESSION.
| Enum Constant Summary | |
|---|---|
ARITHMETIC_MEAN
|
|
GEOMETRIC_MEAN
|
|
MAX
|
|
MIN
|
|
NONE
|
|
QUADRATIC_MEAN
|
|
| Field Summary | |
|---|---|
private String |
displayValue
|
private int |
value
|
private static Map<Integer,Formula.AverageMethod> |
valueMapping
Maps the integer that is stored in the database. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Field Detail |
|---|
private static final Map<Integer,Formula.AverageMethod> valueMapping
private final int value
private final String displayValue
| Method Detail |
|---|
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 name
NullPointerException - 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 allowed
public int getValue()
Formula.AverageMethod in the database.
public String toString()
toString in class Enum<Formula.AverageMethod>
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||