Package net.minecraftforge.debug.command
Enum EnumArgumentTest.ExampleEnum
- java.lang.Object
-
- java.lang.Enum<EnumArgumentTest.ExampleEnum>
-
- net.minecraftforge.debug.command.EnumArgumentTest.ExampleEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EnumArgumentTest.ExampleEnum>
- Enclosing class:
- EnumArgumentTest
public static enum EnumArgumentTest.ExampleEnum extends java.lang.Enum<EnumArgumentTest.ExampleEnum>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ExampleEnum()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EnumArgumentTest.ExampleEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EnumArgumentTest.ExampleEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A
public static final EnumArgumentTest.ExampleEnum A
-
B
public static final EnumArgumentTest.ExampleEnum B
-
-
Method Detail
-
values
public static EnumArgumentTest.ExampleEnum[] 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 (EnumArgumentTest.ExampleEnum c : EnumArgumentTest.ExampleEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnumArgumentTest.ExampleEnum 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
-
-