final class MapOfCodecsProvider extends java.lang.Object implements CodecProvider
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.Class<?>,Codec<?>> |
codecsMap |
| Constructor and Description |
|---|
MapOfCodecsProvider(java.util.List<? extends Codec<?>> codecsList) |
| Modifier and Type | Method and Description |
|---|---|
<T> Codec<T> |
get(java.lang.Class<T> clazz,
CodecRegistry registry)
Get a
Codec using the given context, which includes, most importantly, the Class for which a Codec is required. |
private final java.util.Map<java.lang.Class<?>,Codec<?>> codecsMap
public MapOfCodecsProvider(java.util.List<? extends Codec<?>> codecsList)
public <T> Codec<T> get(java.lang.Class<T> clazz, CodecRegistry registry)
CodecProviderCodec using the given context, which includes, most importantly, the Class for which a Codec is required.get in interface CodecProviderT - the type of the class for which a Codec is requiredclazz - the Class for which to get a Codecregistry - the registry to use for resolving dependent Codec instances