public interface CodecRegistry
While the CodecRegistry
interface adds no stipulations to the general contract for the Object.equals,
programmers who implement the CodecRegistry
interface "directly" must exercise care if they choose to override the
Object.equals
. It is not necessary to do so, and the simplest course of action is to rely on Object's implementation, but the
implementer may wish to implement a "value comparison" in place of the default "reference comparison."
Modifier and Type | Method and Description |
---|---|
<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)
Codec
for the given Class.T
- the class typeclazz
- the classCodecConfigurationException
- if the registry does not contain a codec for the given class.