public final class EnumerationImpl extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<EnumerationImpl>
Constructor and Description |
---|
EnumerationImpl(EnumerationType type,
java.lang.String constant)
Constructs an enumeration.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(EnumerationImpl o) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getConstant()
Returns the enumeration constant (literal).
|
EnumerationType |
getType()
Returns the enumeration type.
|
int |
hashCode() |
java.lang.String |
toString() |
public EnumerationImpl(EnumerationType type, java.lang.String constant)
type
- constant
- public EnumerationType getType()
public java.lang.String getConstant()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(EnumerationImpl o)
compareTo
in interface java.lang.Comparable<EnumerationImpl>
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.