Package com.algo.algorithms
Enum AlgorithmsRunner.AlgorithmsEnum
- java.lang.Object
-
- java.lang.Enum<AlgorithmsRunner.AlgorithmsEnum>
-
- com.algo.algorithms.AlgorithmsRunner.AlgorithmsEnum
-
- All Implemented Interfaces:
OptionsEnum
,java.io.Serializable
,java.lang.Comparable<AlgorithmsRunner.AlgorithmsEnum>
- Enclosing class:
- AlgorithmsRunner
public static enum AlgorithmsRunner.AlgorithmsEnum extends java.lang.Enum<AlgorithmsRunner.AlgorithmsEnum> implements OptionsEnum
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.algo.algorithms.OptionsEnum
OptionsEnum.Options
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACK
CYK
EXIT
GRAPH_ALGORITHMS
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
text
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrdinal()
java.lang.String
getText()
static AlgorithmsRunner.AlgorithmsEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlgorithmsRunner.AlgorithmsEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GRAPH_ALGORITHMS
public static final AlgorithmsRunner.AlgorithmsEnum GRAPH_ALGORITHMS
-
CYK
public static final AlgorithmsRunner.AlgorithmsEnum CYK
-
BACK
public static final AlgorithmsRunner.AlgorithmsEnum BACK
-
EXIT
public static final AlgorithmsRunner.AlgorithmsEnum EXIT
-
-
Method Detail
-
values
public static AlgorithmsRunner.AlgorithmsEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AlgorithmsRunner.AlgorithmsEnum c : AlgorithmsRunner.AlgorithmsEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlgorithmsRunner.AlgorithmsEnum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getText
public java.lang.String getText()
- Specified by:
getText
in interfaceOptionsEnum
-
getOrdinal
public int getOrdinal()
- Specified by:
getOrdinal
in interfaceOptionsEnum
-
-