Package com.jsoniter.any
Class MapWrapperAny
- java.lang.Object
-
- com.jsoniter.any.Any
-
- com.jsoniter.any.MapWrapperAny
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
MapWrapperAny.WrapperIterator
-
Nested classes/interfaces inherited from class com.jsoniter.any.Any
Any.EntryIterator
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,Any>
cache
private java.util.Map
val
-
Fields inherited from class com.jsoniter.any.Any
EMPTY_ENTRIES_ITERATOR, EMPTY_ITERATOR, EMPTY_KEYS
-
-
Constructor Summary
Constructors Constructor Description MapWrapperAny(java.util.Map val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Any.EntryIterator
entries()
private void
fillCache()
private Any
fillCacheUntil(java.lang.Object target)
Any
get(java.lang.Object key)
Any
get(java.lang.Object[] keys, int idx)
java.lang.Object
object()
int
size()
java.math.BigDecimal
toBigDecimal()
java.math.BigInteger
toBigInteger()
boolean
toBoolean()
double
toDouble()
float
toFloat()
int
toInt()
long
toLong()
java.lang.String
toString()
ValueType
valueType()
void
writeTo(JsonStream stream)
-
Methods inherited from class com.jsoniter.any.Any
as, as, as, as, asList, asMap, bindTo, bindTo, bindTo, bindTo, equals, get, get, hashCode, isWildcard, iterator, 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
-
val
private final java.util.Map val
-
cache
private java.util.Map<java.lang.String,Any> cache
-
-
Method Detail
-
toBigInteger
public java.math.BigInteger toBigInteger()
- Specified by:
toBigInteger
in classAny
-
toBigDecimal
public java.math.BigDecimal toBigDecimal()
- Specified by:
toBigDecimal
in classAny
-
writeTo
public void writeTo(JsonStream stream) throws java.io.IOException
-
entries
public Any.EntryIterator entries()
-
fillCacheUntil
private Any fillCacheUntil(java.lang.Object target)
-
fillCache
private void fillCache()
-
-