Package com.jsoniter.any
Class ArrayLazyAny
- java.lang.Object
-
- com.jsoniter.any.Any
-
- com.jsoniter.any.LazyAny
-
- com.jsoniter.any.ArrayLazyAny
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classArrayLazyAny.LazyIterator-
Nested classes/interfaces inherited from class com.jsoniter.any.Any
Any.EntryIterator
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Any>cacheprivate intlastParsedPosprivate static TypeLiteral<java.util.List<Any>>typeLiteral-
Fields inherited from class com.jsoniter.any.Any
EMPTY_ENTRIES_ITERATOR, EMPTY_ITERATOR, EMPTY_KEYS
-
-
Constructor Summary
Constructors Constructor Description ArrayLazyAny(byte[] data, int head, int tail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidfillCache()private AnyfillCacheUntil(int target)Anyget(int index)Anyget(java.lang.Object[] keys, int idx)java.util.Iterator<Any>iterator()java.lang.Objectobject()intsize()java.math.BigDecimaltoBigDecimal()java.math.BigIntegertoBigInteger()booleantoBoolean()doubletoDouble()floattoFloat()inttoInt()longtoLong()java.lang.StringtoString()ValueTypevalueType()voidwriteTo(JsonStream stream)-
Methods inherited from class com.jsoniter.any.Any
as, as, asList, asMap, bindTo, bindTo, entries, equals, get, get, hashCode, isWildcard, keys, lazyArray, lazyDouble, lazyLong, lazyObject, lazyString, mustBeValid, object, registerEncoders, reportUnexpectedType, rewrap, rewrap, set, set, set, set, set, toBigDecimal, toBigInteger, toBoolean, toDouble, toFloat, toInt, toLong, toString, wrap, wrap, wrap, wrap, wrap, wrap, wrap, wrap, wrap, wrap, wrapArray, wrapNull
-
-
-
-
Field Detail
-
typeLiteral
private static final TypeLiteral<java.util.List<Any>> typeLiteral
-
cache
private java.util.List<Any> cache
-
lastParsedPos
private int lastParsedPos
-
-
Method Detail
-
toBigInteger
public java.math.BigInteger toBigInteger()
- Specified by:
toBigIntegerin classAny
-
toBigDecimal
public java.math.BigDecimal toBigDecimal()
- Specified by:
toBigDecimalin classAny
-
iterator
public java.util.Iterator<Any> iterator()
-
fillCache
private void fillCache()
-
fillCacheUntil
private Any fillCacheUntil(int target)
-
writeTo
public void writeTo(JsonStream stream) throws java.io.IOException
-
-