Enum ShortestPathRunner.ShortestPathEnum
- java.lang.Object
-
- java.lang.Enum<ShortestPathRunner.ShortestPathEnum>
-
- com.algo.algorithms.graph.shortestpath.ShortestPathRunner.ShortestPathEnum
-
- All Implemented Interfaces:
OptionsEnum
,java.io.Serializable
,java.lang.Comparable<ShortestPathRunner.ShortestPathEnum>
- Enclosing class:
- ShortestPathRunner
public static enum ShortestPathRunner.ShortestPathEnum extends java.lang.Enum<ShortestPathRunner.ShortestPathEnum> 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
BELLMAN_FORD
DIJKSTRA
EXIT
FLOYD_WARSHALL
-
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 ShortestPathRunner.ShortestPathEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ShortestPathRunner.ShortestPathEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FLOYD_WARSHALL
public static final ShortestPathRunner.ShortestPathEnum FLOYD_WARSHALL
-
BELLMAN_FORD
public static final ShortestPathRunner.ShortestPathEnum BELLMAN_FORD
-
DIJKSTRA
public static final ShortestPathRunner.ShortestPathEnum DIJKSTRA
-
BACK
public static final ShortestPathRunner.ShortestPathEnum BACK
-
EXIT
public static final ShortestPathRunner.ShortestPathEnum EXIT
-
-
Method Detail
-
values
public static ShortestPathRunner.ShortestPathEnum[] 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 (ShortestPathRunner.ShortestPathEnum c : ShortestPathRunner.ShortestPathEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShortestPathRunner.ShortestPathEnum 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
-
-