public abstract class EnumerationType
extends java.lang.Object
public final static
instances of the subclass,
within the subclass definition, as there are enumeration cases.
No other instances of an EnumerationType should ever be created,
and the only operations which should ever be performed on an
EnumerationType are assignment and equality testing.Modifier | Constructor and Description |
---|---|
protected |
EnumerationType(java.lang.String value)
Instantiate an EnumerationType object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(EnumerationType enm)
Type equality test.
|
java.lang.String |
toString()
Return enumeration value.
|
protected EnumerationType(java.lang.String value)
value
- Enumeration valuepublic boolean equals(EnumerationType enm)
enm
- Enumerated typepublic java.lang.String toString()
toString
in class java.lang.Object