public final class CoderProviders
extends java.lang.Object
CoderProvider
s.Modifier and Type | Method and Description |
---|---|
static CoderProvider |
forCoder(TypeDescriptor<?> type,
Coder<?> coder)
Creates a
CoderProvider that always returns the
given coder for the specified type. |
static CoderProvider |
fromStaticMethods(java.lang.Class<?> rawType,
java.lang.Class<?> coderClazz)
Creates a
CoderProvider from a class's
static <T> Coder<T> of(TypeDescriptor<T>, List<Coder<?>> ) method. |
public static CoderProvider fromStaticMethods(java.lang.Class<?> rawType, java.lang.Class<?> coderClazz)
CoderProvider
from a class's
static <T> Coder<T> of(TypeDescriptor<T>, List<Coder<?>>
) method.public static CoderProvider forCoder(TypeDescriptor<?> type, Coder<?> coder)
CoderProvider
that always returns the
given coder for the specified type.