Interface IipEnum
public interface IipEnum
Interface for generated IIP-Ecosphere enums.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the model ordinal of this enum literal.valueByModelOrdinal(Class<E> enumType, int modelOrdinal) Returns an enum literal via its model ordinal, more specifically the first one declaring thegetModelOrdinal()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
Returns an enum literal via its model ordinal, more specifically the first one declaring thegetModelOrdinal()in declaration sequence of the enum constants.- Type Parameters:
E- the enum type- Parameters:
enumType- the class representing the enum type implementingIipEnummodelOrdinal- the ordinal to search for- Returns:
- the enum literal, may be null for none
-