Package org.bson.codecs
Interface Parameterizable
- All Known Implementing Classes:
IterableCodec,MapCodec
public interface Parameterizable
An interface indicating that a Codec is for a type that can be parameterized by generic types.
- Since:
- 4.8
-
Method Summary
Modifier and TypeMethodDescriptionCodec<?>parameterize(CodecRegistry codecRegistry, List<Type> types) Recursively parameterize the codec with the given registry and generic type arguments.
-
Method Details
-
parameterize
Recursively parameterize the codec with the given registry and generic type arguments.- Parameters:
codecRegistry- the code registry to use to resolve codecs for the generic type argumentstypes- the types that are parameterizing the containing type.- Returns:
- the Codec parameterized with the given types
-