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.Object
public <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 Value
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.math.BigDecimal bigDecimalValue()
bigDecimalValue
in interface Value
public java.math.BigInteger bigIntegerValue()
bigIntegerValue
in interface Value
public java.lang.String stringValue()
stringValue
in interface Value
public java.lang.String stringValueEncoded()
stringValueEncoded
in interface Value
public int intValue()
public long longValue()
public byte byteValue()
public short shortValue()
shortValue
in interface Value
shortValue
in class java.lang.Number
public double doubleValue()
doubleValue
in interface Value
doubleValue
in class java.lang.Number
public boolean booleanValue()
booleanValue
in interface Value
public float floatValue()
floatValue
in interface Value
floatValue
in class java.lang.Number