Enum Class IipEnumTest.MyEnum

java.lang.Object
java.lang.Enum<IipEnumTest.MyEnum>
test.de.iip_ecosphere.platform.transport.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
  • Enum Constant Details

  • Field Details

    • ord

      private int ord
  • Constructor Details

    • MyEnum

      private MyEnum(int ordinal)
      Creates a model instance with given getModelOrdinal().
      Parameters:
      ordinal - the ordinal
  • Method Details

    • values

      public static IipEnumTest.MyEnum[] 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

      public static IipEnumTest.MyEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getModelOrdinal

      public int getModelOrdinal()
      Specified by:
      getModelOrdinal in interface de.iip_ecosphere.platform.transport.serialization.IipEnum