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 double
doubleValue()
boolean
equals(Object obj)
float
floatValue()
int
hashCode()
int
intValue()
long
longValue()
String
toString()
-
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:
floatValue
in classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
-