Enum Class IipEnumTest.MyEnum
- All Implemented Interfaces:
de.iip_ecosphere.platform.transport.serialization.IipEnum,Serializable,Comparable<IipEnumTest.MyEnum>,Constable
- Enclosing class:
IipEnumTest
public static enum IipEnumTest.MyEnum
extends Enum<IipEnumTest.MyEnum>
implements de.iip_ecosphere.platform.transport.serialization.IipEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMyEnum(int ordinal) Creates a model instance with givengetModelOrdinal(). -
Method Summary
Modifier and TypeMethodDescriptionintstatic IipEnumTest.MyEnumReturns the enum constant of this class with the specified name.static IipEnumTest.MyEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEST
-
-
Field Details
-
ord
private int ord
-
-
Constructor Details
-
MyEnum
private MyEnum(int ordinal) Creates a model instance with givengetModelOrdinal().- Parameters:
ordinal- the ordinal
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getModelOrdinal
public int getModelOrdinal()- Specified by:
getModelOrdinalin interfacede.iip_ecosphere.platform.transport.serialization.IipEnum
-