Class Any
java.lang.Object
com.jsoniter.any.Any
- Direct Known Subclasses:
ArrayAny, ArrayWrapperAny, DoubleAny, FalseAny, FloatAny, IntAny, LazyAny, ListWrapperAny, LongAny, MapWrapperAny, NotFoundAny, NullAny, ObjectAny, StringAny, TrueAny
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Any.EntryIteratorprivate static final Characterprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tas(TypeLiteral<T> typeLiteral) <T> Tas(TypeLiteral<T> typeLiteral, Object... keys) <T> T<T> TasList()asMap()<T> TbindTo(TypeLiteral<T> typeLiteral, T obj) <T> TbindTo(TypeLiteral<T> typeLiteral, T obj, Object... keys) <T> TbindTo(T obj) <T> Tentries()booleanget(int index) final AnyinthashCode()protected booleanisWildcard(Object key) iterator()keys()static AnylazyArray(byte[] data, int head, int tail) static AnylazyDouble(byte[] data, int head, int tail) static AnylazyLong(byte[] data, int head, int tail) static AnylazyObject(byte[] data, int head, int tail) static AnylazyString(byte[] data, int head, int tail) abstract Objectobject()static voidprotected JsonExceptionreportUnexpectedType(ValueType toType) static Anystatic Anyset(double newVal) set(float newVal) set(int newVal) set(long newVal) intsize()abstract BigDecimalfinal BigDecimaltoBigDecimal(Object... keys) abstract BigIntegerfinal BigIntegertoBigInteger(Object... keys) abstract booleanfinal booleanabstract doubletoDouble()final doubleabstract floattoFloat()final floatabstract inttoInt()final intabstract longtoLong()final longabstract StringtoString()final Stringabstract ValueTypestatic Anywrap(boolean val) static Anywrap(double val) static Anywrap(float val) static Anywrap(int val) static Anywrap(long val) static Anystatic Anystatic <T> Anywrap(Collection<T> val) static <T> Anystatic <T> Anystatic Anystatic AnywrapNull()abstract voidwriteTo(JsonStream stream) Methods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
EMPTY_KEYS
-
EMPTY_ENTRIES_ITERATOR
-
EMPTY_ITERATOR
-
wildcardHashCode
private static final int wildcardHashCode -
wildcard
-
-
Constructor Details
-
Any
public Any()
-
-
Method Details
-
registerEncoders
public static void registerEncoders() -
wrapArray
-
valueType
-
bindTo
-
bindTo
public <T> T bindTo(T obj) -
bindTo
-
bindTo
-
object
-
object
-
asMap
-
asList
-
as
-
as
-
as
-
as
-
toBoolean
-
toBoolean
public abstract boolean toBoolean() -
toInt
-
toInt
public abstract int toInt() -
toLong
-
toLong
public abstract long toLong() -
toFloat
-
toFloat
public abstract float toFloat() -
toDouble
-
toDouble
public abstract double toDouble() -
toBigInteger
-
toBigInteger
-
toBigDecimal
-
toBigDecimal
-
toString
-
toString
-
size
public int size() -
mustBeValid
-
keys
-
iterator
-
entries
-
get
-
get
-
get
-
get
-
set
-
set
-
set
-
set
-
set
-
writeTo
- Throws:
IOException
-
reportUnexpectedType
-
lazyString
-
lazyDouble
-
lazyLong
-
lazyArray
-
lazyObject
-
wrap
-
wrap
-
wrap
-
wrap
-
wrap
-
wrap
-
wrap
-
wrap
-
wrap
-
wrap
-
wrapNull
-
rewrap
-
rewrap
-
isWildcard
-
equals
-
hashCode
-