Package org.apache.groovy.json.internal
Class NumberValue
- java.lang.Object
 - 
- java.lang.Number
 - 
- org.apache.groovy.json.internal.NumberValue
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Value
public class NumberValue extends Number implements Value
- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description NumberValue()NumberValue(boolean chop, Type type, int startIndex, int endIndex, char[] buffer)NumberValue(Type type) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalbigDecimalValue()BigIntegerbigIntegerValue()booleanbooleanValue()bytebyteValue()charcharValue()voidchop()DatedateValue()doubledoubleValue()booleanequals(Object o)floatfloatValue()inthashCode()intintValue()booleanisContainer()longlongValue()shortshortValue()StringstringValue()StringstringValueEncoded()<T extends Enum>
TtoEnum(Class<T> cls)static <T extends Enum>
TtoEnum(Class<T> cls, int value)StringtoString()ObjecttoValue() 
 - 
 
- 
- 
Method Detail
- 
isContainer
public boolean isContainer()
- Specified by:
 isContainerin interfaceValue
 
- 
bigDecimalValue
public BigDecimal bigDecimalValue()
- Specified by:
 bigDecimalValuein interfaceValue
 
- 
bigIntegerValue
public BigInteger bigIntegerValue()
- Specified by:
 bigIntegerValuein interfaceValue
 
- 
stringValue
public String stringValue()
- Specified by:
 stringValuein interfaceValue
 
- 
stringValueEncoded
public String stringValueEncoded()
- Specified by:
 stringValueEncodedin interfaceValue
 
- 
intValue
public int intValue()
 
- 
longValue
public long longValue()
 
- 
byteValue
public byte byteValue()
 
- 
shortValue
public short shortValue()
- Specified by:
 shortValuein interfaceValue- Overrides:
 shortValuein classNumber
 
- 
doubleValue
public double doubleValue()
- Specified by:
 doubleValuein interfaceValue- Specified by:
 doubleValuein classNumber
 
- 
booleanValue
public boolean booleanValue()
- Specified by:
 booleanValuein interfaceValue
 
- 
floatValue
public float floatValue()
- Specified by:
 floatValuein interfaceValue- Specified by:
 floatValuein classNumber
 
 - 
 
 -