Serializer<TypedObject<?>> |
SerializerRegistrar.compositeSerializer() |
Returns a new serializer that uses all the serializers registered
on this registrar instance to serialize any object.
|
<T> Serializer<T> |
SerializerRegistrar.getSerializer(java.lang.Class<T> type) |
Gets a registered serializer for an a type.
|
@Nullable Serializer<?> |
SerializerRegistrar.getSerializer(java.lang.reflect.Type genericType) |
Get a serializer for some generic type.
|
<T> Serializer<T> |
SerializerRegistrar.getSerializer(org.apache.commons.lang3.reflect.Typed<T> typed) |
|
default <S> Serializer<S> |
Serializer.map(java.util.function.Function<T,S> toS,
java.util.function.Function<S,T> fromS) |
Returns a new serializer that can handle another type <S>,
provided <T> can be mapped to and from <S>.
|
default Serializer<T> |
Serializer.nullable() |
Returns a decorated serializer that can handle null values.
|
static <T> Serializer<T> |
Serializer.stringConversion(java.util.function.Function<java.lang.String,T> fromString,
java.util.function.Function<T,java.lang.String> toString) |
Simple serialization from and to a string.
|
default Serializer<T[]> |
Serializer.toArray(T[] emptyArray) |
Builds a new serializer that can serialize arrays of component type
<T>.
|
default <V,M extends java.util.Map<T,V>> Serializer<M> |
Serializer.toMap(java.util.function.Supplier<M> emptyMapSupplier,
Serializer<V> valueSerializer) |
Builds a new serializer that can serialize maps with key type <T>.
|
default <C extends java.util.Collection<T>> Serializer<C> |
Serializer.toSeq(java.util.function.Supplier<C> emptyCollSupplier) |
Builds a new serializer that can serialize arbitrary collections
with element type <T>.
|