public class ObjectWriterCreator
extends java.lang.Object
This class supports various features including:
Example usage:
// Get default creator
ObjectWriterCreator creator = JSONFactory.getDefaultObjectWriterCreator();
// Create ObjectWriter for a class
ObjectWriter<User> writer = creator.createObjectWriter(User.class);
// Create FieldWriter for a field
Field field = User.class.getDeclaredField("name");
FieldWriter<User> fieldWriter = creator.createFieldWriter("name", null, field);
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ObjectWriterCreator.LambdaInfo |
| Modifier and Type | Field and Description |
|---|---|
static ObjectWriterCreator |
INSTANCE |
protected java.util.concurrent.atomic.AtomicInteger |
jitErrorCount |
protected java.lang.Throwable |
jitErrorLast |
(package private) static java.util.Map<java.lang.Class,ObjectWriterCreator.LambdaInfo> |
lambdaMapping |
| Constructor and Description |
|---|
ObjectWriterCreator()
Constructs a new ObjectWriterCreator instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
configSerializeFilters(BeanInfo beanInfo,
ObjectWriterAdapter writerAdapter)
Configures serialize filters for the specified ObjectWriterAdapter.
|
<T> FieldWriter<T> |
createFieldWriter(java.lang.Class<T> objectType,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.lang.reflect.Method method) |
<T> FieldWriter<T> |
createFieldWriter(java.lang.Class<T> objectType,
java.lang.String fieldName,
java.lang.String dateFormat,
java.lang.reflect.Method method)
Creates a FieldWriter for the specified method with default configuration.
|
protected FieldWriter |
createFieldWriter(java.lang.Class objectClass,
long writerFeatures,
ObjectWriterProvider provider,
BeanInfo beanInfo,
FieldInfo fieldInfo,
java.lang.reflect.Field field)
Creates a FieldWriter for the specified field.
|
<T> FieldWriter<T> |
createFieldWriter(ObjectWriterProvider provider,
java.lang.Class<T> objectType,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.util.Locale locale,
java.lang.String label,
java.lang.reflect.Method method,
ObjectWriter initObjectWriter)
Creates a FieldWriter for the specified method with locale and comprehensive configuration.
|
<T> FieldWriter<T> |
createFieldWriter(ObjectWriterProvider provider,
java.lang.Class<T> objectType,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.util.Locale locale,
java.lang.String label,
java.lang.reflect.Method method,
ObjectWriter initObjectWriter,
java.lang.Class<?> contentAs)
Creates a FieldWriter for the specified method with contentAs and comprehensive configuration.
|
<T,V> FieldWriter<T> |
createFieldWriter(ObjectWriterProvider provider,
java.lang.Class<T> objectClass,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.util.Locale locale,
java.lang.String label,
java.lang.reflect.Type fieldType,
java.lang.Class<V> fieldClass,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
java.util.function.Function<T,V> function)
Creates a FieldWriter for the specified function with provider, object class, locale, and comprehensive configuration.
|
<T,V> FieldWriter<T> |
createFieldWriter(ObjectWriterProvider provider,
java.lang.Class<T> objectClass,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.util.Locale locale,
java.lang.String label,
java.lang.reflect.Type fieldType,
java.lang.Class<V> fieldClass,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
java.util.function.Function<T,V> function,
java.lang.Class<?> contentAs)
Creates a FieldWriter for the specified function with provider, object class, contentAs, and comprehensive configuration.
|
<T> FieldWriter<T> |
createFieldWriter(ObjectWriterProvider provider,
java.lang.Class<T> objectType,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.lang.String label,
java.lang.reflect.Method method,
ObjectWriter initObjectWriter)
Creates a FieldWriter for the specified method with comprehensive configuration.
|
<T,V> FieldWriter<T> |
createFieldWriter(ObjectWriterProvider provider,
java.lang.Class<T> objectClass,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.lang.String label,
java.lang.reflect.Type fieldType,
java.lang.Class<V> fieldClass,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
java.util.function.Function<T,V> function)
Creates a FieldWriter for the specified function with provider, object class, field, method, and comprehensive configuration.
|
<T,V> FieldWriter<T> |
createFieldWriter(ObjectWriterProvider provider,
java.lang.Class<T> objectClass,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.lang.String label,
java.lang.reflect.Type fieldType,
java.lang.Class<V> fieldClass,
java.lang.reflect.Method method,
java.util.function.Function<T,V> function)
Creates a FieldWriter for the specified function with provider, object class, and comprehensive configuration.
|
<T> FieldWriter<T> |
createFieldWriter(ObjectWriterProvider provider,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.util.Locale locale,
java.lang.String label,
java.lang.reflect.Field field,
ObjectWriter initObjectWriter)
Creates a FieldWriter for the specified field with locale and comprehensive configuration.
|
<T> FieldWriter<T> |
createFieldWriter(ObjectWriterProvider provider,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.util.Locale locale,
java.lang.String label,
java.lang.reflect.Field field,
ObjectWriter initObjectWriter,
java.lang.Class<?> contentAs)
Creates a FieldWriter for the specified field with contentAs and comprehensive configuration.
|
<T> FieldWriter<T> |
createFieldWriter(ObjectWriterProvider provider,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.lang.String label,
java.lang.reflect.Field field,
ObjectWriter initObjectWriter)
Creates a FieldWriter for the specified field with provider and comprehensive configuration.
|
<T,V> FieldWriter |
createFieldWriter(java.lang.String fieldName,
java.lang.Class fieldClass,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
java.util.function.Function<T,V> function)
Creates a FieldWriter for the specified field, method, and function.
|
<T,V> FieldWriter |
createFieldWriter(java.lang.String fieldName,
java.lang.Class fieldClass,
java.util.function.Function<T,V> function)
Creates a FieldWriter for the specified function with default configuration.
|
<T> FieldWriter |
createFieldWriter(java.lang.String fieldName,
java.lang.reflect.Field field,
java.lang.reflect.Method method,
java.util.function.ToIntFunction<T> function)
Creates a FieldWriter for the specified field, method, and function that returns an int value.
|
<T> FieldWriter<T> |
createFieldWriter(java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.lang.reflect.Field field)
Creates a FieldWriter for the specified field with ordinal and features.
|
<T> FieldWriter<T> |
createFieldWriter(java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.lang.String label,
java.lang.reflect.Field field,
ObjectWriter initObjectWriter)
Creates a FieldWriter for the specified field with comprehensive configuration.
|
<T,V> FieldWriter |
createFieldWriter(java.lang.String fieldName,
long features,
java.lang.String format,
java.lang.Class fieldClass,
java.util.function.Function<T,V> function)
Creates a FieldWriter for the specified function with features and format.
|
<T> FieldWriter |
createFieldWriter(java.lang.String fieldName,
java.util.function.Predicate<T> function)
Creates a FieldWriter for the specified predicate function that returns a boolean value.
|
<T> FieldWriter<T> |
createFieldWriter(java.lang.String fieldName,
java.lang.String format,
java.lang.reflect.Field field)
Creates a FieldWriter for the specified field with default configuration.
|
<T> FieldWriter |
createFieldWriter(java.lang.String fieldName,
ToByteFunction<T> function)
Creates a FieldWriter for the specified function that returns a byte value.
|
<T> FieldWriter |
createFieldWriter(java.lang.String fieldName,
ToCharFunction<T> function)
Creates a FieldWriter for the specified function that returns a char value.
|
<T> FieldWriter |
createFieldWriter(java.lang.String fieldName,
java.util.function.ToDoubleFunction<T> function)
Creates a FieldWriter for the specified function that returns a double value.
|
<T> FieldWriter |
createFieldWriter(java.lang.String fieldName,
ToFloatFunction<T> function)
Creates a FieldWriter for the specified function that returns a float value.
|
<T> FieldWriter |
createFieldWriter(java.lang.String fieldName,
java.util.function.ToIntFunction<T> function)
Creates a FieldWriter for the specified function that returns an int value.
|
<T> FieldWriter |
createFieldWriter(java.lang.String fieldName,
java.util.function.ToLongFunction<T> function)
Creates a FieldWriter for the specified function that returns a long value.
|
<T> FieldWriter |
createFieldWriter(java.lang.String fieldName,
ToShortFunction<T> function)
Creates a FieldWriter for the specified function that returns a short value.
|
<T,V> FieldWriter |
createFieldWriter(java.lang.String fieldName,
java.lang.reflect.Type fieldType,
java.lang.Class fieldClass,
java.util.function.Function<T,V> function)
Creates a FieldWriter for the specified function with field type and class.
|
(package private) <T> FieldWriter<T> |
createFieldWriterLambda(ObjectWriterProvider provider,
java.lang.Class<T> objectClass,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.util.Locale locale,
java.lang.String label,
java.lang.reflect.Method method,
ObjectWriter initObjectWriter,
java.lang.Class<?> contentAs) |
(package private) <T> FieldWriter<T> |
createFieldWriterLambda(ObjectWriterProvider provider,
java.lang.Class<T> objectClass,
java.lang.String fieldName,
int ordinal,
long features,
java.lang.String format,
java.lang.String label,
java.lang.reflect.Method method,
ObjectWriter initObjectWriter,
java.lang.Class<?> contentAs) |
ObjectWriter |
createObjectWriter(java.lang.Class objectType)
Creates an ObjectWriter for the specified object type.
|
ObjectWriter |
createObjectWriter(java.lang.Class objectType,
FieldWriter... fieldWriters)
Creates an ObjectWriter for the specified object type and field writers.
|
ObjectWriter |
createObjectWriter(java.lang.Class objectClass,
long features,
FieldWriter... fieldWriters)
Creates an ObjectWriter for the specified object class, features, and field writers.
|
ObjectWriter |
createObjectWriter(java.lang.Class objectClass,
long features,
java.util.List<ObjectWriterModule> modules)
Creates an ObjectWriter for the specified object class, features, and modules.
|
ObjectWriter |
createObjectWriter(java.lang.Class objectClass,
long features,
ObjectWriterProvider provider)
Creates an ObjectWriter for the specified object class, features, and provider.
|
ObjectWriter |
createObjectWriter(FieldWriter... fieldWriters)
Creates an ObjectWriter for the specified array of FieldWriters.
|
ObjectWriter |
createObjectWriter(java.util.List<FieldWriter> fieldWriters)
Creates an ObjectWriter for the specified list of FieldWriters.
|
<T> ObjectWriter<T> |
createObjectWriter(java.lang.String[] names,
java.lang.reflect.Type[] types,
FieldSupplier<T> supplier)
Creates an ObjectWriter for the specified object type with names, types, and supplier.
|
protected static java.lang.String |
getFieldName(java.lang.Class objectClass,
ObjectWriterProvider provider,
BeanInfo beanInfo,
boolean record,
FieldInfo fieldInfo,
java.lang.reflect.Method method)
Gets the field name for the specified method based on various naming strategies and configurations.
|
protected ObjectWriter |
getInitWriter(ObjectWriterProvider provider,
java.lang.Class fieldClass) |
protected void |
handleIgnores(BeanInfo beanInfo,
java.util.List<FieldWriter> fieldWriters)
Handles field ignores based on the BeanInfo configuration.
|
(package private) java.lang.Object |
lambdaGetter(java.lang.Class objectClass,
java.lang.Class fieldClass,
java.lang.reflect.Method method) |
protected void |
setDefaultValue(java.util.List<FieldWriter> fieldWriters,
java.lang.Class objectClass)
Sets default values for the specified field writers using the default constructor of the object class.
|
public static final ObjectWriterCreator INSTANCE
static final java.util.Map<java.lang.Class,ObjectWriterCreator.LambdaInfo> lambdaMapping
protected final java.util.concurrent.atomic.AtomicInteger jitErrorCount
protected volatile java.lang.Throwable jitErrorLast
public ObjectWriterCreator()
public ObjectWriter createObjectWriter(java.util.List<FieldWriter> fieldWriters)
fieldWriters - the list of FieldWriters to usepublic ObjectWriter createObjectWriter(FieldWriter... fieldWriters)
fieldWriters - the array of FieldWriters to usepublic <T> ObjectWriter<T> createObjectWriter(java.lang.String[] names, java.lang.reflect.Type[] types, FieldSupplier<T> supplier)
T - the type of objects that the ObjectWriter can serializenames - the field namestypes - the field typessupplier - the FieldSupplier to usepublic ObjectWriter createObjectWriter(java.lang.Class objectType)
objectType - the class of objects to serializepublic ObjectWriter createObjectWriter(java.lang.Class objectType, FieldWriter... fieldWriters)
objectType - the class of objects to serializefieldWriters - the field writers to usepublic ObjectWriter createObjectWriter(java.lang.Class objectClass, long features, FieldWriter... fieldWriters)
objectClass - the class of objects to serializefeatures - the features to usefieldWriters - the field writers to useprotected FieldWriter createFieldWriter(java.lang.Class objectClass, long writerFeatures, ObjectWriterProvider provider, BeanInfo beanInfo, FieldInfo fieldInfo, java.lang.reflect.Field field)
objectClass - the class containing the fieldwriterFeatures - the writer features to useprovider - the ObjectWriterProvider to usebeanInfo - the BeanInfo to usefieldInfo - the FieldInfo to usefield - the Field to create a writer forpublic ObjectWriter createObjectWriter(java.lang.Class objectClass, long features, java.util.List<ObjectWriterModule> modules)
objectClass - the class of objects to serializefeatures - the features to usemodules - the ObjectWriterModules to useprotected void setDefaultValue(java.util.List<FieldWriter> fieldWriters, java.lang.Class objectClass)
fieldWriters - the list of FieldWriters to set default values forobjectClass - the class of objects to create default instances frompublic ObjectWriter createObjectWriter(java.lang.Class objectClass, long features, ObjectWriterProvider provider)
objectClass - the class of objects to serializefeatures - the features to useprovider - the ObjectWriterProvider to useprotected static java.lang.String getFieldName(java.lang.Class objectClass,
ObjectWriterProvider provider,
BeanInfo beanInfo,
boolean record,
FieldInfo fieldInfo,
java.lang.reflect.Method method)
objectClass - the class containing the methodprovider - the ObjectWriterProvider to usebeanInfo - the BeanInfo containing configurationrecord - whether the class is a recordfieldInfo - the FieldInfo containing field configurationmethod - the method to get the field name forprotected static void configSerializeFilters(BeanInfo beanInfo, ObjectWriterAdapter writerAdapter)
beanInfo - the BeanInfo containing filter configurationwriterAdapter - the ObjectWriterAdapter to configure filters forprotected void handleIgnores(BeanInfo beanInfo, java.util.List<FieldWriter> fieldWriters)
beanInfo - the BeanInfo containing ignore configurationfieldWriters - the list of FieldWriters to processpublic <T> FieldWriter<T> createFieldWriter(java.lang.String fieldName, java.lang.String format, java.lang.reflect.Field field)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldformat - the date format to usefield - the Field to create a writer forpublic <T> FieldWriter<T> createFieldWriter(java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.lang.reflect.Field field)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to usefield - the Field to create a writer forpublic <T> FieldWriter<T> createFieldWriter(java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.lang.String label, java.lang.reflect.Field field, ObjectWriter initObjectWriter)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselabel - the label for the fieldfield - the Field to create a writer forinitObjectWriter - the initial ObjectWriter to usepublic final <T> FieldWriter<T> createFieldWriter(ObjectWriterProvider provider, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.lang.String label, java.lang.reflect.Field field, ObjectWriter initObjectWriter)
T - the type of objects that the FieldWriter can serializeprovider - the ObjectWriterProvider to usefieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselabel - the label for the fieldfield - the Field to create a writer forinitObjectWriter - the initial ObjectWriter to usepublic <T> FieldWriter<T> createFieldWriter(ObjectWriterProvider provider, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.util.Locale locale, java.lang.String label, java.lang.reflect.Field field, ObjectWriter initObjectWriter)
T - the type of objects that the FieldWriter can serializeprovider - the ObjectWriterProvider to usefieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselocale - the locale to uselabel - the label for the fieldfield - the Field to create a writer forinitObjectWriter - the initial ObjectWriter to usepublic <T> FieldWriter<T> createFieldWriter(ObjectWriterProvider provider, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.util.Locale locale, java.lang.String label, java.lang.reflect.Field field, ObjectWriter initObjectWriter, java.lang.Class<?> contentAs)
T - the type of objects that the FieldWriter can serializeprovider - the ObjectWriterProvider to usefieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselocale - the locale to uselabel - the label for the fieldfield - the Field to create a writer forinitObjectWriter - the initial ObjectWriter to usecontentAs - the contentAs classpublic <T> FieldWriter<T> createFieldWriter(java.lang.Class<T> objectType, java.lang.String fieldName, java.lang.String dateFormat, java.lang.reflect.Method method)
T - the type of objects that the FieldWriter can serializeobjectType - the class containing the methodfieldName - the name of the fielddateFormat - the date format to usemethod - the Method to create a writer forpublic <T> FieldWriter<T> createFieldWriter(java.lang.Class<T> objectType, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.lang.reflect.Method method)
public <T> FieldWriter<T> createFieldWriter(ObjectWriterProvider provider, java.lang.Class<T> objectType, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.lang.String label, java.lang.reflect.Method method, ObjectWriter initObjectWriter)
T - the type of objects that the FieldWriter can serializeprovider - the ObjectWriterProvider to useobjectType - the class containing the methodfieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselabel - the label for the fieldmethod - the Method to create a writer forinitObjectWriter - the initial ObjectWriter to usepublic <T> FieldWriter<T> createFieldWriter(ObjectWriterProvider provider, java.lang.Class<T> objectType, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.util.Locale locale, java.lang.String label, java.lang.reflect.Method method, ObjectWriter initObjectWriter)
T - the type of objects that the FieldWriter can serializeprovider - the ObjectWriterProvider to useobjectType - the class containing the methodfieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselocale - the locale to uselabel - the label for the fieldmethod - the Method to create a writer forinitObjectWriter - the initial ObjectWriter to usepublic <T> FieldWriter<T> createFieldWriter(ObjectWriterProvider provider, java.lang.Class<T> objectType, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.util.Locale locale, java.lang.String label, java.lang.reflect.Method method, ObjectWriter initObjectWriter, java.lang.Class<?> contentAs)
T - the type of objects that the FieldWriter can serializeprovider - the ObjectWriterProvider to useobjectType - the class containing the methodfieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselocale - the locale to uselabel - the label for the fieldmethod - the Method to create a writer forinitObjectWriter - the initial ObjectWriter to usecontentAs - the contentAs classpublic <T> FieldWriter createFieldWriter(java.lang.String fieldName, java.util.function.ToLongFunction<T> function)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldfunction - the ToLongFunction to create a writer forpublic <T> FieldWriter createFieldWriter(java.lang.String fieldName, java.util.function.ToIntFunction<T> function)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldfunction - the ToIntFunction to create a writer forpublic <T> FieldWriter createFieldWriter(java.lang.String fieldName, java.lang.reflect.Field field, java.lang.reflect.Method method, java.util.function.ToIntFunction<T> function)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldfield - the Field to create a writer formethod - the Method to create a writer forfunction - the ToIntFunction to create a writer forpublic <T> FieldWriter createFieldWriter(java.lang.String fieldName, ToShortFunction<T> function)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldfunction - the ToShortFunction to create a writer forpublic <T> FieldWriter createFieldWriter(java.lang.String fieldName, ToByteFunction<T> function)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldfunction - the ToByteFunction to create a writer forpublic <T> FieldWriter createFieldWriter(java.lang.String fieldName, ToFloatFunction<T> function)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldfunction - the ToFloatFunction to create a writer forpublic <T> FieldWriter createFieldWriter(java.lang.String fieldName, java.util.function.ToDoubleFunction<T> function)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldfunction - the ToDoubleFunction to create a writer forpublic <T> FieldWriter createFieldWriter(java.lang.String fieldName, ToCharFunction<T> function)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldfunction - the ToCharFunction to create a writer forpublic <T> FieldWriter createFieldWriter(java.lang.String fieldName, java.util.function.Predicate<T> function)
T - the type of objects that the FieldWriter can serializefieldName - the name of the fieldfunction - the Predicate to create a writer forpublic <T,V> FieldWriter createFieldWriter(java.lang.String fieldName, java.lang.Class fieldClass, java.util.function.Function<T,V> function)
T - the type of objects that owns the fieldV - the type of field valuesfieldName - the name of the fieldfieldClass - the class of the fieldfunction - the Function to create a writer forkpublic <T,V> FieldWriter createFieldWriter(java.lang.String fieldName, java.lang.Class fieldClass, java.lang.reflect.Field field, java.lang.reflect.Method method, java.util.function.Function<T,V> function)
T - the type of objects that owns the fieldV - the type of field valuesfieldName - the name of the fieldfieldClass - the class of the fieldfield - the Field to create a writer formethod - the Method to create a writer forfunction - the Function to create a writer forpublic <T,V> FieldWriter createFieldWriter(java.lang.String fieldName, java.lang.reflect.Type fieldType, java.lang.Class fieldClass, java.util.function.Function<T,V> function)
T - the type of objects that owns the fieldV - the type of field valuesfieldName - the name of the fieldfieldType - the type of the fieldfieldClass - the class of the fieldfunction - the Function to create a writer forpublic <T,V> FieldWriter createFieldWriter(java.lang.String fieldName, long features, java.lang.String format, java.lang.Class fieldClass, java.util.function.Function<T,V> function)
T - the type of objects that owns the fieldV - the type of field valuesfieldName - the name of the fieldfeatures - the features to useformat - the date format to usefieldClass - the class of the fieldfunction - the Function to create a writer forpublic <T,V> FieldWriter<T> createFieldWriter(ObjectWriterProvider provider, java.lang.Class<T> objectClass, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.lang.String label, java.lang.reflect.Type fieldType, java.lang.Class<V> fieldClass, java.lang.reflect.Method method, java.util.function.Function<T,V> function)
T - the type of objects that owns the fieldV - the type of field valuesprovider - the ObjectWriterProvider to useobjectClass - the class containing the fieldfieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselabel - the label for the fieldfieldType - the type of the fieldfieldClass - the class of the fieldmethod - the Method to create a writer forfunction - the Function to create a writer forpublic <T,V> FieldWriter<T> createFieldWriter(ObjectWriterProvider provider, java.lang.Class<T> objectClass, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.lang.String label, java.lang.reflect.Type fieldType, java.lang.Class<V> fieldClass, java.lang.reflect.Field field, java.lang.reflect.Method method, java.util.function.Function<T,V> function)
T - the type of objects that owns the fieldV - the type of field valuesprovider - the ObjectWriterProvider to useobjectClass - the class containing the fieldfieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselabel - the label for the fieldfieldType - the type of the fieldfieldClass - the class of the fieldfield - the Field to create a writer formethod - the Method to create a writer forfunction - the Function to create a writer forpublic <T,V> FieldWriter<T> createFieldWriter(ObjectWriterProvider provider, java.lang.Class<T> objectClass, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.util.Locale locale, java.lang.String label, java.lang.reflect.Type fieldType, java.lang.Class<V> fieldClass, java.lang.reflect.Field field, java.lang.reflect.Method method, java.util.function.Function<T,V> function)
T - the type of objects that owns the fieldV - the type of field valuesprovider - the ObjectWriterProvider to useobjectClass - the class containing the fieldfieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselocale - the locale to uselabel - the label for the fieldfieldType - the type of the fieldfieldClass - the class of the fieldfield - the Field to create a writer formethod - the Method to create a writer forfunction - the Function to create a writer forpublic <T,V> FieldWriter<T> createFieldWriter(ObjectWriterProvider provider, java.lang.Class<T> objectClass, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.util.Locale locale, java.lang.String label, java.lang.reflect.Type fieldType, java.lang.Class<V> fieldClass, java.lang.reflect.Field field, java.lang.reflect.Method method, java.util.function.Function<T,V> function, java.lang.Class<?> contentAs)
T - the type of objects that owns the fieldV - the type of field valuesprovider - the ObjectWriterProvider to useobjectClass - the class containing the fieldfieldName - the name of the fieldordinal - the ordinal position of the fieldfeatures - the features to useformat - the date format to uselocale - the locale to uselabel - the label for the fieldfieldType - the type of the fieldfieldClass - the class of the fieldfield - the Field to create a writer formethod - the Method to create a writer forfunction - the Function to create a writer forcontentAs - the contentAs classjava.lang.Object lambdaGetter(java.lang.Class objectClass,
java.lang.Class fieldClass,
java.lang.reflect.Method method)
protected ObjectWriter getInitWriter(ObjectWriterProvider provider, java.lang.Class fieldClass)
<T> FieldWriter<T> createFieldWriterLambda(ObjectWriterProvider provider, java.lang.Class<T> objectClass, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.lang.String label, java.lang.reflect.Method method, ObjectWriter initObjectWriter, java.lang.Class<?> contentAs)
<T> FieldWriter<T> createFieldWriterLambda(ObjectWriterProvider provider, java.lang.Class<T> objectClass, java.lang.String fieldName, int ordinal, long features, java.lang.String format, java.util.Locale locale, java.lang.String label, java.lang.reflect.Method method, ObjectWriter initObjectWriter, java.lang.Class<?> contentAs)