Codec<UUID>
, Decoder<UUID>
, Encoder<UUID>
OverridableUuidRepresentationUuidCodec
Encodes and decodes UUID
objects.
Constructors
The constructor for UUIDCodec, default is JAVA_LEGACY
The default UUIDRepresentation is JAVA_LEGACY to be compatible with existing documents
Decodes a BSON value from the given reader into an instance of the type parameter T
.
void
Encode an instance of the type parameter T
into a BSON value.
Returns the Class instance that this encodes.
The UuidRepresentation
with which this instance is configured
The default UUIDRepresentation is JAVA_LEGACY to be compatible with existing documents
uuidRepresentation
- the representation of UUID
public UuidCodec()
The constructor for UUIDCodec, default is JAVA_LEGACY
The UuidRepresentation
with which this instance is configured
Encoder
Encode an instance of the type parameter T
into a BSON value.
Decoder
Decodes a BSON value from the given reader into an instance of the type parameter T
.
Encoder
Returns the Class instance that this encodes. This is necessary because Java does not reify generic types.
getEncoderClass
in interface Encoder<UUID>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4