Top Description Fields Constructors Methods
com.google.gson.internal

public Class NumberLimits

extends Object
Class Inheritance
Imports
java.math.BigDecimal, .BigInteger

This class enforces limits on numbers parsed from JSON to avoid potential performance problems when extremely large numbers are used.

Field Summary

Modifier and TypeField and Description
private static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
public static BigDecimal
public static BigInteger
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAX_NUMBER_STRING_LENGTHback to summary
private static final int MAX_NUMBER_STRING_LENGTH

Constructor Detail

NumberLimitsback to summary
private NumberLimits()

Method Detail

checkNumberStringLengthback to summary
private static void checkNumberStringLength(String s)
parseBigDecimalback to summary
public static BigDecimal parseBigDecimal(String s) throws NumberFormatException
parseBigIntegerback to summary
public static BigInteger parseBigInteger(String s) throws NumberFormatException