public final class ObjectReaderImplMap extends java.lang.Object implements ObjectReader
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ObjectReaderImplMap.ObjectCreatorUF |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.function.Function |
builder |
(package private) static java.lang.Class |
CLASS_EMPTY_MAP |
(package private) static java.lang.Class |
CLASS_EMPTY_NAVIGABLE_MAP |
(package private) static java.lang.Class |
CLASS_EMPTY_SORTED_MAP |
(package private) static java.lang.Class |
CLASS_SINGLETON_MAP |
(package private) static java.lang.Class |
CLASS_UNMODIFIABLE_MAP |
(package private) static java.lang.Class |
CLASS_UNMODIFIABLE_NAVIGABLE_MAP |
(package private) static java.lang.Class |
CLASS_UNMODIFIABLE_SORTED_MAP |
(package private) static java.util.function.Function |
ENUM_MAP_BUILDER |
(package private) long |
features |
(package private) java.lang.reflect.Type |
fieldType |
static ObjectReaderImplMap |
INSTANCE |
static ObjectReaderImplMap |
INSTANCE_OBJECT |
(package private) boolean |
instanceError |
(package private) java.lang.Class |
instanceType |
(package private) java.lang.Object |
mapSingleton |
(package private) java.lang.Class |
mapType |
(package private) long |
mapTypeHash |
(package private) static java.util.function.Function |
UNSAFE_OBJECT_CREATOR |
HASH_TYPE, VALUE_NAME| Constructor and Description |
|---|
ObjectReaderImplMap(java.lang.Class mapClass,
long features,
java.lang.Object mapSingleton) |
ObjectReaderImplMap(java.lang.reflect.Type fieldType,
java.lang.Class mapType,
java.lang.Class instanceType,
long features,
java.util.function.Function builder) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createInstance(long features) |
java.lang.Object |
createInstance(java.util.Map map,
long features) |
(package private) static java.util.function.Function |
createObjectSupplier(java.lang.Class objectClass) |
java.util.function.Function |
getBuildFunction()
Gets the build function used to construct the final object instance.
|
java.lang.Class |
getObjectClass()
Gets the class of objects that this ObjectReader can deserialize.
|
static ObjectReader |
of(java.lang.reflect.Type fieldType,
java.lang.Class mapType,
long features) |
java.lang.Object |
readJSONBObject(JSONReader jsonReader,
java.lang.reflect.Type fieldType,
java.lang.Object fieldName1,
long features)
Reads an object from JSONB format.
|
java.lang.Object |
readObject(JSONReader jsonReader,
java.lang.reflect.Type fieldType,
java.lang.Object fieldName,
long features)
Reads an object from the specified JSONReader with the given field type, field name, and features.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, acceptExtra, acceptExtra, autoType, autoType, createInstance, createInstance, createInstance, createInstance, createInstance, createInstanceNoneDefaultConstructor, getFeatures, getFieldReader, getFieldReader, getFieldReaderLCase, getTypeKey, getTypeKeyHash, readArrayMappingJSONBObject, readArrayMappingObject, readObject, readObject, readObject, setFieldValue, setFieldValue, setFieldValuestatic final java.util.function.Function ENUM_MAP_BUILDER
static java.util.function.Function UNSAFE_OBJECT_CREATOR
static final java.lang.Class CLASS_SINGLETON_MAP
static final java.lang.Class CLASS_EMPTY_MAP
static final java.lang.Class CLASS_EMPTY_SORTED_MAP
static final java.lang.Class CLASS_EMPTY_NAVIGABLE_MAP
static final java.lang.Class CLASS_UNMODIFIABLE_MAP
static final java.lang.Class CLASS_UNMODIFIABLE_SORTED_MAP
static final java.lang.Class CLASS_UNMODIFIABLE_NAVIGABLE_MAP
public static final ObjectReaderImplMap INSTANCE
public static final ObjectReaderImplMap INSTANCE_OBJECT
final java.lang.reflect.Type fieldType
final java.lang.Class mapType
final long mapTypeHash
final java.lang.Class instanceType
final long features
final java.util.function.Function builder
java.lang.Object mapSingleton
volatile boolean instanceError
ObjectReaderImplMap(java.lang.Class mapClass,
long features,
java.lang.Object mapSingleton)
ObjectReaderImplMap(java.lang.reflect.Type fieldType,
java.lang.Class mapType,
java.lang.Class instanceType,
long features,
java.util.function.Function builder)
public static ObjectReader of(java.lang.reflect.Type fieldType, java.lang.Class mapType, long features)
public java.lang.Class getObjectClass()
ObjectReadergetObjectClass in interface ObjectReaderpublic java.util.function.Function getBuildFunction()
ObjectReadergetBuildFunction in interface ObjectReaderpublic java.lang.Object createInstance(long features)
createInstance in interface ObjectReaderTpublic java.lang.Object createInstance(java.util.Map map,
long features)
createInstance in interface ObjectReaderTpublic java.lang.Object readJSONBObject(JSONReader jsonReader, java.lang.reflect.Type fieldType, java.lang.Object fieldName1, long features)
ObjectReaderreadJSONBObject in interface ObjectReaderjsonReader - the JSONReader to use for parsingfieldType - the type of the field being readfieldName1 - the name of the field being readfeatures - the features to usepublic java.lang.Object readObject(JSONReader jsonReader, java.lang.reflect.Type fieldType, java.lang.Object fieldName, long features)
ObjectReaderreadObject in interface ObjectReaderjsonReader - the JSONReader to use for parsingfieldType - the type of the field being readfieldName - the name of the field being readfeatures - the features to usestatic java.util.function.Function createObjectSupplier(java.lang.Class objectClass)