Package com.mapr.cli
Enum NodePathSwitchCommand.PathTypeEnum
- java.lang.Object
-
- java.lang.Enum<NodePathSwitchCommand.PathTypeEnum>
-
- com.mapr.cli.NodePathSwitchCommand.PathTypeEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NodePathSwitchCommand.PathTypeEnum>
- Enclosing class:
- NodePathSwitchCommand
public static enum NodePathSwitchCommand.PathTypeEnum extends java.lang.Enum<NodePathSwitchCommand.PathTypeEnum>
Enum to handle change options Had to introduce getExtName() method - as "switch" is reserved word
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExtName()static NodePathSwitchCommand.PathTypeEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NodePathSwitchCommand.PathTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SWITCH
public static final NodePathSwitchCommand.PathTypeEnum SWITCH
-
RACK
public static final NodePathSwitchCommand.PathTypeEnum RACK
-
BOTH
public static final NodePathSwitchCommand.PathTypeEnum BOTH
-
-
Method Detail
-
values
public static NodePathSwitchCommand.PathTypeEnum[] 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 (NodePathSwitchCommand.PathTypeEnum c : NodePathSwitchCommand.PathTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodePathSwitchCommand.PathTypeEnum 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
-
getExtName
public java.lang.String getExtName()
-
-