|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JamaUtils.Function>
edu.umbc.cs.maple.utils.JamaUtils.Function
public static enum JamaUtils.Function
Specifies a simple mathematical function.
Enum Constant Summary | |
---|---|
MAX
|
|
MEAN
|
|
MIN
|
Method Summary | |
---|---|
double |
applyFunction(double v1,
double v2)
Apply the function to the two values. |
double |
applyFunction(int v1,
int v2)
Apply the function to the two values. |
static JamaUtils.Function |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JamaUtils.Function[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JamaUtils.Function MAX
public static final JamaUtils.Function MIN
public static final JamaUtils.Function MEAN
Method Detail |
---|
public static final JamaUtils.Function[] values()
for(JamaUtils.Function c : JamaUtils.Function.values()) System.out.println(c);
public static JamaUtils.Function valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic double applyFunction(int v1, int v2)
public double applyFunction(double v1, double v2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |