Package org.bson.codecs
Class OverridableUuidRepresentationUuidCodec
- java.lang.Object
-
- org.bson.codecs.UuidCodec
-
- org.bson.codecs.OverridableUuidRepresentationUuidCodec
-
- All Implemented Interfaces:
Codec<java.util.UUID>
,Decoder<java.util.UUID>
,Encoder<java.util.UUID>
,OverridableUuidRepresentationCodec<java.util.UUID>
@Deprecated(since="2022-10-31") public class OverridableUuidRepresentationUuidCodec extends UuidCodec implements OverridableUuidRepresentationCodec<java.util.UUID>
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.An extension ofUuidCodec
that allows its configuredUuidRepresentation
to be overridden by an externally configuredUuidRepresentation
, most likely configured onMongoClientSettings
orMongoClientOptions
.- Since:
- 3.12
-
-
Constructor Summary
Constructors Constructor Description OverridableUuidRepresentationUuidCodec()
Deprecated.Construct an instance with the default UUID representation.OverridableUuidRepresentationUuidCodec(UuidRepresentation uuidRepresentation)
Deprecated.Construct an instance with the given UUID representation.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Codec<java.util.UUID>
withUuidRepresentation(UuidRepresentation uuidRepresentation)
Deprecated.Implementations must return a new instance with theUuidRepresentation
overridden with the given value.-
Methods inherited from class org.bson.codecs.UuidCodec
decode, encode, getEncoderClass, getUuidRepresentation, toString
-
-
-
-
Constructor Detail
-
OverridableUuidRepresentationUuidCodec
public OverridableUuidRepresentationUuidCodec()
Deprecated.Construct an instance with the default UUID representation.
-
OverridableUuidRepresentationUuidCodec
public OverridableUuidRepresentationUuidCodec(UuidRepresentation uuidRepresentation)
Deprecated.Construct an instance with the given UUID representation.- Parameters:
uuidRepresentation
- the UUID representation
-
-
Method Detail
-
withUuidRepresentation
public Codec<java.util.UUID> withUuidRepresentation(UuidRepresentation uuidRepresentation)
Deprecated.Description copied from interface:OverridableUuidRepresentationCodec
Implementations must return a new instance with theUuidRepresentation
overridden with the given value.- Specified by:
withUuidRepresentation
in interfaceOverridableUuidRepresentationCodec<java.util.UUID>
- Parameters:
uuidRepresentation
- the UuidRepresentation- Returns:
- a new instance equivalent to this but with the given UuidRepresentation
-
-