|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<NumericStrategy>
nl.liacs.subdisc.NumericStrategy
public enum NumericStrategy
NumericStrategy contains all available NumericStrategies.
Enum Constant Summary | |
---|---|
NUMERIC_ALL
|
|
NUMERIC_BEST
|
|
NUMERIC_BINS
|
Field Summary | |
---|---|
java.lang.String |
GUI_TEXT
For each NumericStrategy, this is the text that will be used in the GUI. |
Method Summary | |
---|---|
static NumericStrategy |
getDefault()
Returns the default NumericStrategy. |
static NumericStrategy |
getNumericStrategy(java.lang.String theType)
Returns the NumericStrategy corresponding to the String
parameter. |
java.lang.String |
toString()
Returns a friendly String |
static NumericStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static NumericStrategy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final NumericStrategy NUMERIC_BINS
public static final NumericStrategy NUMERIC_BEST
public static final NumericStrategy NUMERIC_ALL
Field Detail |
---|
public final java.lang.String GUI_TEXT
String
that will be returned by the
toString() method.
Method Detail |
---|
public static NumericStrategy[] values()
for (NumericStrategy c : NumericStrategy.values()) System.out.println(c);
public static NumericStrategy 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 name
java.lang.NullPointerException
- if the argument is nullpublic static NumericStrategy getNumericStrategy(java.lang.String theType)
String
parameter. This method is case insensitive.
theType
- the String
corresponding to a
NumericStrategy.
String
parameter, or the default NumericStrategy NUMERIC_BINS
if no
corresponding NumericStrategy can not be found.public static NumericStrategy getDefault()
public java.lang.String toString()
EnumInterface
String to show in the GUI.
- Specified by:
toString
in interface EnumInterface
- Overrides:
toString
in class java.lang.Enum<NumericStrategy>
- Returns:
- the text
String
presented to the end user.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |