com.sun.n1.util.enum
Interface Enum
- All Known Subinterfaces:
- EnumX
- All Known Implementing Classes:
- AppType, ComparisonType, ConnectionType, CriteriaShorthand, EntityType, EnumImpl, EnumXImpl, ExecutionMode, HostStatus, Level, Modifier, NamedBlockType, OutputType, RunLevel, Scope, Style, TargetStatusCode, TaskStatus, TaskType, TransformType, UpgradeNodeState, UpgradeTaskState, Visibility
public interface Enum
An interface for strongly typed enumerations. Enums can be mapped
from either a string value or an int value. String values are
arbitrary, whereas int values are monotonically increasing ints
starting with zero for the first enum defined. Implementations of Enum
will define the available values within the enumeration as class
constants. Also associated with an Enum is an EnumFactory
,
which can be used to lookup all the values defined for a particular
enum, or to lookup a particular enum by its string or int value.
Method Summary |
int |
toInt()
Returns the int value of this enum. |
toInt
int toInt()
- Returns the int value of this enum.
- Returns:
- the enum as an int value.