public class EnumItem extends Object
EnumType| Constructor and Description |
|---|
EnumItem(String name,
String value)
Creates a new
EnumItem. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.public final String getName()
null.public String getValue()
null.public int hashCode()
public boolean equals(Object obj)
See http://www.xins.org/.