Package org.apache.groovy.json.internal
Class NumberValue
- java.lang.Object
- 
- java.lang.Number
- 
- org.apache.groovy.json.internal.NumberValue
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- Value
 
 public class NumberValue extends java.lang.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 java.math.BigDecimalbigDecimalValue()java.math.BigIntegerbigIntegerValue()booleanbooleanValue()bytebyteValue()charcharValue()voidchop()java.util.DatedateValue()doubledoubleValue()booleanequals(java.lang.Object o)floatfloatValue()inthashCode()intintValue()booleanisContainer()longlongValue()shortshortValue()java.lang.StringstringValue()java.lang.StringstringValueEncoded()<T extends java.lang.Enum>
 TtoEnum(java.lang.Class<T> cls)static <T extends java.lang.Enum>
 TtoEnum(java.lang.Class<T> cls, int value)java.lang.StringtoString()java.lang.ObjecttoValue()
 
- 
- 
- 
Method Detail- 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toEnumpublic <T extends java.lang.Enum> T toEnum(java.lang.Class<T> cls) 
 - 
toEnumpublic static <T extends java.lang.Enum> T toEnum(java.lang.Class<T> cls, int value)
 - 
isContainerpublic boolean isContainer() - Specified by:
- isContainerin interface- Value
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
bigDecimalValuepublic java.math.BigDecimal bigDecimalValue() - Specified by:
- bigDecimalValuein interface- Value
 
 - 
bigIntegerValuepublic java.math.BigInteger bigIntegerValue() - Specified by:
- bigIntegerValuein interface- Value
 
 - 
stringValuepublic java.lang.String stringValue() - Specified by:
- stringValuein interface- Value
 
 - 
stringValueEncodedpublic java.lang.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- java.lang.Number
 
 - 
doubleValuepublic double doubleValue() - Specified by:
- doubleValuein interface- Value
- Specified by:
- doubleValuein class- java.lang.Number
 
 - 
booleanValuepublic boolean booleanValue() - Specified by:
- booleanValuein interface- Value
 
 - 
floatValuepublic float floatValue() - Specified by:
- floatValuein interface- Value
- Specified by:
- floatValuein class- java.lang.Number
 
 
- 
 
-