ObjectSerializer or ObjectSerializer instead.@Deprecated
public final class ObjectConverter
extends java.lang.Object
| Constructor and Description |
|---|
ObjectConverter()
Deprecated.
Use
ObjectSerializer or ObjectSerializer instead. |
ObjectConverter(boolean bypassTransient,
boolean bypassFinal)
Deprecated.
Creates a new ObjectConverter with advanced parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
toConfig(java.lang.Class<?> clazz,
Config destination)
Deprecated.
Converts static fields to a Config.
|
<C extends Config> |
toConfig(java.lang.Class<?> clazz,
java.util.function.Supplier<C> destinationSupplier)
Deprecated.
Converts static fields to a Config.
|
void |
toConfig(java.lang.Object o,
Config destination)
Deprecated.
Converts an Object to a Config.
|
<C extends Config> |
toConfig(java.lang.Object o,
java.util.function.Supplier<C> destinationSupplier)
Deprecated.
Use
ObjectSerializer.serializeFields(Object, Supplier) instead. |
void |
toObject(UnmodifiableConfig config,
java.lang.Object destination)
Deprecated.
Converts a Config to an Object.
|
<O> O |
toObject(UnmodifiableConfig config,
java.util.function.Supplier<O> destinationSupplier)
Deprecated.
|
public ObjectConverter(boolean bypassTransient,
boolean bypassFinal)
bypassTransient - true to use (parse or write) a field even if it's transientbypassFinal - true to write a field even if it's finalpublic ObjectConverter()
ObjectSerializer or ObjectSerializer instead.new ObjectConverter(false, true).ObjectConverter(boolean, boolean)public void toConfig(java.lang.Object o,
Config destination)
o - the object to convertdestination - the Config where to put the values into
Use ObjectSerializer.serializeFields(Object, Config) instead.public void toConfig(java.lang.Class<?> clazz,
Config destination)
clazz - classdestination - configpublic <C extends Config> C toConfig(java.lang.Object o, java.util.function.Supplier<C> destinationSupplier)
ObjectSerializer.serializeFields(Object, Supplier) instead.C - the destination's typeo - the object to convertdestinationSupplier - a Supplier that provides the Config where to put the values intopublic <C extends Config> C toConfig(java.lang.Class<?> clazz, java.util.function.Supplier<C> destinationSupplier)
C - type of configclazz - classdestinationSupplier - config supplierpublic void toObject(UnmodifiableConfig config, java.lang.Object destination)
config - the config to convertdestination - the Object where to put the values into
Use ObjectDeserializer.deserializeFields(UnmodifiableConfig, Object) instead.public <O> O toObject(UnmodifiableConfig config, java.util.function.Supplier<O> destinationSupplier)
ObjectDeserializer.deserializeFields(UnmodifiableConfig, Supplier) instead.O - the destination's typeconfig - the config to convertdestinationSupplier - a Supplier that provides the Object where to put the values into