public interface IipEnum
Interface for generated IIP-Ecosphere enums.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the model ordinal of this enum literal.
    static <E extends Enum<E> & IipEnum>
    E
    valueByModelOrdinal(Class<E> enumType, int modelOrdinal)
    Returns an enum literal via its model ordinal, more specifically the first one declaring the getModelOrdinal() in declaration sequence of the enum constants.
  • Method Details

    • getModelOrdinal

      int getModelOrdinal()
      Returns the model ordinal of this enum literal.
      Returns:
      the model ordinal value
    • valueByModelOrdinal

      static <E extends Enum<E> & IipEnum> E valueByModelOrdinal(Class<E> enumType, int modelOrdinal)
      Returns an enum literal via its model ordinal, more specifically the first one declaring the getModelOrdinal() in declaration sequence of the enum constants.
      Type Parameters:
      E - the enum type
      Parameters:
      enumType - the class representing the enum type implementing IipEnum
      modelOrdinal - the ordinal to search for
      Returns:
      the enum literal, may be null for none