public class RuntimeMethods extends Object
Constructor and Description |
---|
RuntimeMethods() |
Modifier and Type | Method and Description |
---|---|
static Object |
coerce(Object value,
Type t)
Coerce a value e.g., from a JSON bindings, to a more specific a Java value, using
ICoercionProvider
where applicable. |
static Object |
coerceFromBindingsValue(Object value,
Type t) |
static Object |
coerceToBindingValue(Object arg) |
static Object |
constructProxy(Object root,
Class iface) |
static <T> Iterable<T> |
makeIterable(Iterator<T> iter) |
static IProxyFactory |
maybeSelfProxyClass(Class<?> rootClass,
Class<?> iface) |
static Object |
unFakeProxy(Object proxy) |
public static Object coerce(Object value, Type t)
ICoercionProvider
where applicable. Note, for List
the type
corresponds with the deepest component type of the list,
see ListCoercer
.public static IProxyFactory maybeSelfProxyClass(Class<?> rootClass, Class<?> iface)
Copyright © 2024. All rights reserved.