Interface EnumDefinition
public interface EnumDefinition
Defines an enumeration.
- Since:
- API version 11
-
Method Summary
Modifier and TypeMethodDescriptionintGets the number of entries in the enum, must be greater than 0.valueDefinitionAt(int valueIndex) Gets theEnumValueDefinitionfor the given index.Gets theEnumValueDefinitionfor the given enum id.
-
Method Details
-
getValueCount
int getValueCount()Gets the number of entries in the enum, must be greater than 0.- Since:
- API version 11
-
valueDefinitionAt
Gets theEnumValueDefinitionfor the given index.- Parameters:
valueIndex- must be in the range 0 ..getValueCount()- 1.- Returns:
- null if not found
- Since:
- API version 11
-
valueDefinitionFor
Gets theEnumValueDefinitionfor the given enum id.- Returns:
- null if not found
- Since:
- API version 11
-