Package com.jsoniter.any
Class ObjectLazyAny
java.lang.Object
com.jsoniter.any.Any
com.jsoniter.any.LazyAny
com.jsoniter.any.ObjectLazyAny
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.jsoniter.any.Any
Any.EntryIterator
-
Field Summary
FieldsFields inherited from class com.jsoniter.any.Any
EMPTY_ENTRIES_ITERATOR, EMPTY_ITERATOR, EMPTY_KEYS
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.jsoniter.any.Any
as, as, asList, asMap, bindTo, bindTo, equals, get, get, hashCode, isWildcard, iterator, 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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
typeLiteral
-
cache
-
lastParsedPos
private int lastParsedPos
-
-
Constructor Details
-
ObjectLazyAny
public ObjectLazyAny(byte[] data, int head, int tail)
-
-
Method Details
-
valueType
-
object
-
toBoolean
public boolean toBoolean() -
toInt
public int toInt() -
toLong
public long toLong() -
toFloat
public float toFloat() -
toDouble
public double toDouble() -
toBigInteger
- Specified by:
toBigInteger
in classAny
-
toBigDecimal
- Specified by:
toBigDecimal
in classAny
-
size
public int size() -
keys
-
get
-
get
-
fillCacheUntil
-
fillCache
private void fillCache() -
entries
-
writeTo
- Overrides:
writeTo
in classLazyAny
- Throws:
IOException
-
toString
-