final class ProvidersCodecRegistry extends java.lang.Object implements CodecRegistry, CodecProvider
Modifier and Type | Field and Description |
---|---|
private CodecCache |
codecCache |
private java.util.List<CodecProvider> |
codecProviders |
Constructor and Description |
---|
ProvidersCodecRegistry(java.util.List<? extends CodecProvider> codecProviders) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
(package private) <T> Codec<T> |
get(ChildCodecRegistry context) |
<T> Codec<T> |
get(java.lang.Class<T> clazz)
Gets a
Codec for the given Class. |
<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. |
int |
hashCode() |
private final java.util.List<CodecProvider> codecProviders
private final CodecCache codecCache
ProvidersCodecRegistry(java.util.List<? extends CodecProvider> codecProviders)
public <T> Codec<T> get(java.lang.Class<T> clazz)
CodecRegistry
Codec
for the given Class.get
in interface CodecRegistry
T
- the class typeclazz
- the classpublic <T> Codec<T> get(java.lang.Class<T> clazz, CodecRegistry registry)
CodecProvider
Codec
using the given context, which includes, most importantly, the Class for which a Codec
is required.get
in interface CodecProvider
T
- 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<T> Codec<T> get(ChildCodecRegistry context)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object