com.google.gson.internal
Class LazilyParsedNumber

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

Constructor Detail

LazilyParsedNumber

public LazilyParsedNumber(String value)
Method Detail

intValue

public int intValue()
Specified by:
intValue in class Number

longValue

public long longValue()
Specified by:
longValue in class Number

floatValue

public float floatValue()
Specified by:
floatValue in class Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Number

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.