Package com.jsoniter.any
Class LazyAny
java.lang.Object
com.jsoniter.any.Any
com.jsoniter.any.LazyAny
- Direct Known Subclasses:
ArrayLazyAny
,DoubleLazyAny
,LongLazyAny
,ObjectLazyAny
,StringLazyAny
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jsoniter.any.Any
Any.EntryIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]
protected final int
protected final int
Fields inherited from class com.jsoniter.any.Any
EMPTY_ENTRIES_ITERATOR, EMPTY_ITERATOR, EMPTY_KEYS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <T> T
as
(TypeLiteral<T> typeLiteral) final <T> T
final <T> T
bindTo
(TypeLiteral<T> typeLiteral, T obj) final <T> T
bindTo
(T obj) protected final JsonIterator
parse()
toString()
abstract ValueType
void
writeTo
(JsonStream stream) Methods inherited from class com.jsoniter.any.Any
as, as, asList, asMap, bindTo, bindTo, entries, equals, get, get, get, get, hashCode, isWildcard, iterator, keys, lazyArray, lazyDouble, lazyLong, lazyObject, lazyString, mustBeValid, object, object, registerEncoders, reportUnexpectedType, rewrap, rewrap, set, set, set, set, set, size, toBigDecimal, toBigDecimal, toBigInteger, toBigInteger, toBoolean, toBoolean, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toLong, 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
-
data
protected final byte[] data -
head
protected final int head -
tail
protected final int tail
-
-
Constructor Details
-
LazyAny
public LazyAny(byte[] data, int head, int tail)
-
-
Method Details
-
valueType
-
bindTo
public final <T> T bindTo(T obj) -
bindTo
-
as
-
as
-
toString
-
parse
-
writeTo
- Specified by:
writeTo
in classAny
- Throws:
IOException
-