| Modifier and Type | Class and Description |
|---|---|
static interface |
Any.EntryIterator |
| Modifier and Type | Field and Description |
|---|---|
protected static Any.EntryIterator |
EMPTY_ENTRIES_ITERATOR |
protected static Iterator<Any> |
EMPTY_ITERATOR |
protected static Set<String> |
EMPTY_KEYS |
| Constructor and Description |
|---|
Any() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
as(Class<T> clazz) |
<T> T |
as(Class<T> clazz,
Object... keys) |
<T> T |
as(TypeLiteral<T> typeLiteral) |
<T> T |
as(TypeLiteral<T> typeLiteral,
Object... keys) |
List<Any> |
asList() |
Map<String,Any> |
asMap() |
<T> T |
bindTo(T obj) |
<T> T |
bindTo(T obj,
Object... keys) |
<T> T |
bindTo(TypeLiteral<T> typeLiteral,
T obj) |
<T> T |
bindTo(TypeLiteral<T> typeLiteral,
T obj,
Object... keys) |
Any.EntryIterator |
entries() |
boolean |
equals(Object o) |
Any |
get(int index) |
Any |
get(Object... keys) |
Any |
get(Object key) |
Any |
get(Object[] keys,
int idx) |
int |
hashCode() |
protected boolean |
isWildcard(Object key) |
Iterator<Any> |
iterator() |
Set |
keys() |
static Any |
lazyArray(byte[] data,
int head,
int tail) |
static Any |
lazyDouble(byte[] data,
int head,
int tail) |
static Any |
lazyLong(byte[] data,
int head,
int tail) |
static Any |
lazyObject(byte[] data,
int head,
int tail) |
static Any |
lazyString(byte[] data,
int head,
int tail) |
Any |
mustBeValid() |
abstract Object |
object() |
Object |
object(Object... keys) |
static void |
registerEncoders() |
protected JsonException |
reportUnexpectedType(ValueType toType) |
static Any |
rewrap(List<Any> val) |
static Any |
rewrap(Map<String,Any> val) |
Any |
set(double newVal) |
Any |
set(float newVal) |
Any |
set(int newVal) |
Any |
set(long newVal) |
Any |
set(String newVal) |
int |
size() |
abstract BigDecimal |
toBigDecimal() |
BigDecimal |
toBigDecimal(Object... keys) |
abstract BigInteger |
toBigInteger() |
BigInteger |
toBigInteger(Object... keys) |
abstract boolean |
toBoolean() |
boolean |
toBoolean(Object... keys) |
abstract double |
toDouble() |
double |
toDouble(Object... keys) |
abstract float |
toFloat() |
float |
toFloat(Object... keys) |
abstract int |
toInt() |
int |
toInt(Object... keys) |
abstract long |
toLong() |
long |
toLong(Object... keys) |
abstract String |
toString() |
String |
toString(Object... keys) |
abstract ValueType |
valueType() |
static Any |
wrap(boolean val) |
static <T> Any |
wrap(Collection<T> val) |
static Any |
wrap(double val) |
static Any |
wrap(float val) |
static Any |
wrap(int val) |
static <T> Any |
wrap(List<T> val) |
static Any |
wrap(long val) |
static <T> Any |
wrap(Map<String,T> val) |
static Any |
wrap(Object val) |
static Any |
wrap(String val) |
static Any |
wrapArray(Object val) |
static Any |
wrapNull() |
abstract void |
writeTo(JsonStream stream) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected static final Any.EntryIterator EMPTY_ENTRIES_ITERATOR
public static void registerEncoders()
public abstract ValueType valueType()
public <T> T bindTo(T obj,
Object... keys)
public <T> T bindTo(T obj)
public <T> T bindTo(TypeLiteral<T> typeLiteral, T obj, Object... keys)
public <T> T bindTo(TypeLiteral<T> typeLiteral, T obj)
public abstract Object object()
public <T> T as(Class<T> clazz)
public <T> T as(TypeLiteral<T> typeLiteral, Object... keys)
public <T> T as(TypeLiteral<T> typeLiteral)
public final boolean toBoolean(Object... keys)
public abstract boolean toBoolean()
public final int toInt(Object... keys)
public abstract int toInt()
public final long toLong(Object... keys)
public abstract long toLong()
public final float toFloat(Object... keys)
public abstract float toFloat()
public final double toDouble(Object... keys)
public abstract double toDouble()
public final BigInteger toBigInteger(Object... keys)
public abstract BigInteger toBigInteger()
public final BigDecimal toBigDecimal(Object... keys)
public abstract BigDecimal toBigDecimal()
public int size()
public Any mustBeValid()
public Set keys()
public Any.EntryIterator entries()
public Any get(int index)
public Any set(int newVal)
public Any set(long newVal)
public Any set(float newVal)
public Any set(double newVal)
public abstract void writeTo(JsonStream stream) throws IOException
IOExceptionprotected JsonException reportUnexpectedType(ValueType toType)
public static Any lazyString(byte[] data, int head, int tail)
public static Any lazyDouble(byte[] data, int head, int tail)
public static Any lazyLong(byte[] data, int head, int tail)
public static Any lazyArray(byte[] data, int head, int tail)
public static Any lazyObject(byte[] data, int head, int tail)
public static Any wrap(int val)
public static Any wrap(long val)
public static Any wrap(float val)
public static Any wrap(double val)
public static Any wrap(boolean val)
public static <T> Any wrap(Collection<T> val)
public static Any wrapNull()
protected boolean isWildcard(Object key)
Copyright © 2019. All rights reserved.