|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.types.EnumItem
Item in an enumeration type.
EnumType
Constructor Summary | |
EnumItem(String name,
String value)
Creates a new EnumItem . |
Method Summary | |
boolean |
equals(Object obj)
Checks if this object is considered equal to the specified object. |
String |
getName()
Gets the symbolic (friendly) name for the enumeration value. |
String |
getValue()
Gets the value for this enumeration item. |
int |
hashCode()
Returns the hash code for this object. |
String |
toString()
Returns a textual representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EnumItem(String name, String value) throws IllegalArgumentException
EnumItem
.
name
- the symbolic (friendly) name for the enumeration value, not
null
.value
- the actual value of the enumeration item, not null
.
IllegalArgumentException
- if name == null || value == null
.Method Detail |
public final String getName()
null
.public String getValue()
null
.public int hashCode()
public boolean equals(Object obj)
obj
- the object to compare, or null
.
true
if obj
is considered equal to this
instance, or false
otherwise.public String toString()
null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |