com.google.gson.internal
Class LazilyParsedNumber

java.lang.Object
  extended by java.lang.Number
      extended by com.google.gson.internal.LazilyParsedNumber
All Implemented Interfaces:
java.io.Serializable

public final class LazilyParsedNumber
extends java.lang.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
LazilyParsedNumber(java.lang.String value)
           
 
Method Summary
 double doubleValue()
           
 float floatValue()
           
 int intValue()
           
 long longValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazilyParsedNumber

public LazilyParsedNumber(java.lang.String value)
Method Detail

intValue

public int intValue()
Specified by:
intValue in class java.lang.Number

longValue

public long longValue()
Specified by:
longValue in class java.lang.Number

floatValue

public float floatValue()
Specified by:
floatValue in class java.lang.Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class java.lang.Number

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object