public abstract class Enumerated extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
protected |
Enumerated(Object value)
Construct the enumerated value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object rhs)
Compare the specified object to this one.
|
protected static Map |
generateMap(Enumerated[] enumerations)
Generate the map of enumeration values to enumerations.
|
Object |
getKey()
Get the key representation of this enumeration.
|
int |
hashCode()
Return a hash code for this enumerated entry.
|
protected Object |
readResolve()
Replace any serialised version of this class with the same instance.
|
protected abstract Enumerated |
resolveEnum(Object value)
Resolve the value of an enumeration.
|
String |
toString()
Get the string representation of this enumeration.
|
protected Enumerated(Object value)
value
- The string value of the enumeration.public boolean equals(Object rhs)
public int hashCode()
public Object getKey()
public String toString()
protected abstract Enumerated resolveEnum(Object value) throws InvalidEnumerationException
value
- The value of the enumeration.InvalidEnumerationException
- if the enumeration value is invalid.protected Object readResolve() throws ObjectStreamException
ObjectStreamException
protected static Map generateMap(Enumerated[] enumerations)
enumerations
- The enumerations to configure.Copyright © 2016 JBoss by Red Hat. All rights reserved.