Enum Class MyEnum

java.lang.Object
java.lang.Enum<MyEnum>
test.de.iip_ecosphere.platform.connectors.MyEnum
All Implemented Interfaces:
de.iip_ecosphere.platform.transport.serialization.IipEnum, Serializable, Comparable<MyEnum>, Constable

enum MyEnum extends Enum<MyEnum> implements de.iip_ecosphere.platform.transport.serialization.IipEnum
A test enum with model ordinal.
Author:
Holger Eichelberger, SSE
  • Enum Constant Details

    • TEST1

      public static final MyEnum TEST1
    • TEST2

      public static final MyEnum TEST2
  • Field Details

    • modelOrdinal

      private int modelOrdinal
  • Constructor Details

    • MyEnum

      private MyEnum(int modelOrdinal)
      Creates an enum constant.
      Parameters:
      modelOrdinal - the model ordinal value to use
  • Method Details

    • values

      public static 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 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