|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.reflect.plugins.EnumValueImpl
public class EnumValueImpl
An enumeration value
Field Summary | |
---|---|
protected int |
hash
The hash code |
protected TypeInfo |
type
The type |
protected String |
value
The value |
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Constructor Summary | |
---|---|
EnumValueImpl()
Create a new EnumValue. |
|
EnumValueImpl(TypeInfo type,
String value)
Create a new EnumValue. |
Method Summary | |
---|---|
protected void |
calculateHash()
Calculate the hash code |
boolean |
equals(Object o)
|
TypeInfo |
getType()
Get the type of the value |
String |
getValue()
Get the value |
int |
hashCode()
|
Methods inherited from class org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected TypeInfo type
protected String value
protected int hash
Constructor Detail |
---|
public EnumValueImpl()
public EnumValueImpl(TypeInfo type, String value)
type
- the typevalue
- the valueMethod Detail |
---|
public String getValue()
EnumValue
getValue
in interface EnumValue
public TypeInfo getType()
Value
getType
in interface Value
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class org.jboss.util.JBossObject
protected void calculateHash()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |