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, isStringcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitasAnnotation, asArray, asClass, asEnum, asPrimitive, asString, isAnnotation, isArray, isClass, isPrimitive, isStringprotected TypeInfo type
protected String value
protected int hash
public boolean isEnum()
ValueisEnum in interface ValueisEnum in class AbstractValuepublic TypeInfo getType()
Valuepublic int hashCode()
hashCode in class org.jboss.util.JBossObjectprotected void calculateHash()
Copyright © 2016 JBoss by Red Hat. All rights reserved.