public final class ProvidersCodecRegistry extends java.lang.Object implements CodecRegistry, CodecProvider
| Constructor and Description |
|---|
ProvidersCodecRegistry(java.util.List<? extends CodecProvider> codecProviders) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
<T> Codec<T> |
get(org.bson.internal.ChildCodecRegistry<T> context)
Get the Codec using the given 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() |
public ProvidersCodecRegistry(java.util.List<? extends CodecProvider> codecProviders)
public <T> Codec<T> get(java.lang.Class<T> clazz)
CodecRegistryCodec for the given Class.get in interface CodecRegistryT - the class typeclazz - the classpublic <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 instancespublic <T> Codec<T> get(org.bson.internal.ChildCodecRegistry<T> context)
T - the value typecontext - the child contextpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved