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 Type
    Method
    Description
    parameterize(CodecRegistry codecRegistry, List<Type> types)
    Recursively parameterize the codec with the given registry and generic type arguments.
  • Method Details

    • parameterize

      Codec<?> parameterize(CodecRegistry codecRegistry, List<Type> types)
      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 arguments
      types - the types that are parameterizing the containing type.
      Returns:
      the Codec parameterized with the given types