public class EnumValueImpl extends AbstractValue implements EnumValue
Modifier and Type | Field and Description |
---|---|
protected int |
hash
The hash code
|
protected TypeInfo |
type
The type
|
protected String |
value
The value
|
Constructor and Description |
---|
EnumValueImpl()
Create a new EnumValue.
|
EnumValueImpl(TypeInfo type,
String value)
Create a new EnumValue.
|
Modifier and Type | Method and Description |
---|---|
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() |
boolean |
isEnum()
Is this value an enum
|
asAnnotation, asArray, asClass, asEnum, asPrimitive, asString, isAnnotation, isArray, isClass, isPrimitive, isString
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
asAnnotation, asArray, asClass, asEnum, asPrimitive, asString, isAnnotation, isArray, isClass, isPrimitive, isString
protected TypeInfo type
protected String value
protected int hash
public boolean isEnum()
Value
isEnum
in interface Value
isEnum
in class AbstractValue
public TypeInfo getType()
Value
public int hashCode()
hashCode
in class org.jboss.util.JBossObject
protected void calculateHash()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.