public final class Serializers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> DisplayTask<Content> |
asDisplayTask(Serializer<? super T> serializer,
T object) |
static <T> MultiSerializer<T> |
compound(AbstractSerializer<? super T> primary,
AbstractSerializer<? super T> secondary) |
static <T> MultiSerializer<T> |
compound(java.lang.Iterable<? extends AbstractSerializer<? super T>> serializers) |
public static <T> DisplayTask<Content> asDisplayTask(Serializer<? super T> serializer, @Nullable T object)
public static <T> MultiSerializer<T> compound(AbstractSerializer<? super T> primary, AbstractSerializer<? super T> secondary)
public static <T> MultiSerializer<T> compound(java.lang.Iterable<? extends AbstractSerializer<? super T>> serializers)