public class NumberValue extends java.lang.Number implements Value
| Constructor and Description |
|---|
NumberValue() |
NumberValue(boolean chop,
Type type,
int startIndex,
int endIndex,
char[] buffer) |
NumberValue(Type type) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
bigDecimalValue() |
java.math.BigInteger |
bigIntegerValue() |
boolean |
booleanValue() |
byte |
byteValue() |
char |
charValue() |
void |
chop() |
java.util.Date |
dateValue() |
double |
doubleValue() |
boolean |
equals(java.lang.Object o) |
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
boolean |
isContainer() |
long |
longValue() |
short |
shortValue() |
java.lang.String |
stringValue() |
java.lang.String |
stringValueEncoded() |
<T extends java.lang.Enum> |
toEnum(java.lang.Class<T> cls) |
static <T extends java.lang.Enum> |
toEnum(java.lang.Class<T> cls,
int value) |
java.lang.String |
toString() |
java.lang.Object |
toValue() |
public NumberValue(Type type)
public NumberValue()
public NumberValue(boolean chop,
Type type,
int startIndex,
int endIndex,
char[] buffer)
public java.lang.String toString()
toString in class java.lang.Objectpublic <T extends java.lang.Enum> T toEnum(java.lang.Class<T> cls)
public static <T extends java.lang.Enum> T toEnum(java.lang.Class<T> cls,
int value)
public boolean isContainer()
isContainer in interface Valuepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.math.BigDecimal bigDecimalValue()
bigDecimalValue in interface Valuepublic java.math.BigInteger bigIntegerValue()
bigIntegerValue in interface Valuepublic java.lang.String stringValue()
stringValue in interface Valuepublic java.lang.String stringValueEncoded()
stringValueEncoded in interface Valuepublic int intValue()
public long longValue()
public byte byteValue()
public short shortValue()
shortValue in interface ValueshortValue in class java.lang.Numberpublic double doubleValue()
doubleValue in interface ValuedoubleValue in class java.lang.Numberpublic boolean booleanValue()
booleanValue in interface Valuepublic float floatValue()
floatValue in interface ValuefloatValue in class java.lang.Number