Package com.google.gson.internal
Class LazilyParsedNumber
- java.lang.Object
-
- java.lang.Number
-
- com.google.gson.internal.LazilyParsedNumber
-
- All Implemented Interfaces:
Serializable
public final class LazilyParsedNumber extends Number
This class holds a number value that is lazily converted to a specific number type- Author:
- Inderjeet Singh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazilyParsedNumber(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledoubleValue()booleanequals(Object obj)floatfloatValue()inthashCode()intintValue()longlongValue()StringtoString()-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Constructor Detail
-
LazilyParsedNumber
public LazilyParsedNumber(String value)
- Parameters:
value- must not be null
-
-
Method Detail
-
floatValue
public float floatValue()
- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classNumber
-
-