CodecProvider
public class Jsr310CodecProvider extends Object implements CodecProvider
Supplies the following JSR-310 based Codecs:
Requires Java 8 or greater.
Constructor | Description |
---|---|
Jsr310CodecProvider() |
Modifier and Type | Method | Description |
---|---|---|
<T> Codec<T> |
get(Class<T> clazz,
CodecRegistry registry) |
Get a
Codec using the given context, which includes, most importantly, the Class for which a Codec is required. |
public <T> Codec<T> get(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