Interface OverridableUuidRepresentationCodec<T>

Type Parameters:
T - the value type
All Known Implementing Classes:
DocumentCodec, IterableCodec, MapCodec, OverridableUuidRepresentationUuidCodec

public interface OverridableUuidRepresentationCodec<T>
A marker interface for Codec implementations that can derive a new instance that overrides the UuidRepresentation.
Since:
3.12
  • Method Summary

    Modifier and Type
    Method
    Description
    Implementations must return a new instance with the UuidRepresentation overridden with the given value.
  • Method Details

    • withUuidRepresentation

      Codec<T> withUuidRepresentation(UuidRepresentation uuidRepresentation)
      Implementations must return a new instance with the UuidRepresentation overridden with the given value.
      Parameters:
      uuidRepresentation - the UuidRepresentation
      Returns:
      a new instance equivalent to this but with the given UuidRepresentation