public class OverridableUuidRepresentationUuidCodec extends UuidCodec implements OverridableUuidRepresentationCodec<java.util.UUID>
UuidCodec that allows its configured UuidRepresentation to be overridden by an externally configured
UuidRepresentation, most likely configured on MongoClientSettings or MongoClientOptions.| Constructor and Description |
|---|
OverridableUuidRepresentationUuidCodec()
Construct an instance with the default UUID representation.
|
OverridableUuidRepresentationUuidCodec(UuidRepresentation uuidRepresentation)
Construct an instance with the given UUID representation.
|
| Modifier and Type | Method and Description |
|---|---|
Codec<java.util.UUID> |
withUuidRepresentation(UuidRepresentation uuidRepresentation)
Implementations must return a new instance with the
UuidRepresentation overridden with the given value. |
decode, encode, getEncoderClass, getUuidRepresentation, toStringpublic OverridableUuidRepresentationUuidCodec()
public OverridableUuidRepresentationUuidCodec(UuidRepresentation uuidRepresentation)
uuidRepresentation - the UUID representationpublic Codec<java.util.UUID> withUuidRepresentation(UuidRepresentation uuidRepresentation)
OverridableUuidRepresentationCodecUuidRepresentation overridden with the given value.withUuidRepresentation in interface OverridableUuidRepresentationCodec<java.util.UUID>uuidRepresentation - the UuidRepresentationCopyright © 2010 - 2023 Adobe. All Rights Reserved