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 SummaryConstructors Constructor Description NumberValue()NumberValue(boolean chop, Type type, int startIndex, int endIndex, char[] buffer)NumberValue(Type type)
 - 
Method SummaryAll 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- 
isContainerpublic boolean isContainer() - Specified by:
- isContainerin interface- Value
 
 - 
bigDecimalValuepublic BigDecimal bigDecimalValue() - Specified by:
- bigDecimalValuein interface- Value
 
 - 
bigIntegerValuepublic BigInteger bigIntegerValue() - Specified by:
- bigIntegerValuein interface- Value
 
 - 
stringValuepublic String stringValue() - Specified by:
- stringValuein interface- Value
 
 - 
stringValueEncodedpublic String stringValueEncoded() - Specified by:
- stringValueEncodedin interface- Value
 
 - 
intValuepublic int intValue() 
 - 
longValuepublic long longValue() 
 - 
byteValuepublic byte byteValue() 
 - 
shortValuepublic short shortValue() - Specified by:
- shortValuein interface- Value
- Overrides:
- shortValuein class- Number
 
 - 
doubleValuepublic double doubleValue() - Specified by:
- doubleValuein interface- Value
- Specified by:
- doubleValuein class- Number
 
 - 
booleanValuepublic boolean booleanValue() - Specified by:
- booleanValuein interface- Value
 
 - 
floatValuepublic float floatValue() - Specified by:
- floatValuein interface- Value
- Specified by:
- floatValuein class- Number
 
 
- 
 
-