LegacyUuid class

This class is a convenient way for managing Binary subtype 3 Bson types (Uuid Old). The class holds the content in the format that will be stored in the data base. You can directly create the object with .fromHexString(), or use the format converters for each flavour that have been used As per today, the flavours I'm aware of are: Java legacy, C# legacy and Python legacy. The storing algorithn are the following (found in internet, please confirm me): Standard (subtype 4, not covered from this class): -- From value "00112233-4455-6677-8899-aabbccddeeff" -- To value "00112233-4455-6677-8899-aabbccddeeff" Java: -- From value "00112233-4455-6677-8899-aabbccddeeff" -- To value "77665544-3322-1100-ffee-ddccbbaa9988" C#: -- From value "00112233-4455-6677-8899-aabbccddeeff" -- To value "33221100-5544-7766-8899-aabbccddeeff" Python: -- From value "00112233-4455-6677-8899-aabbccddeeff" -- To value "00112233-4455-6677-8899-aabbccddeeff"

Once you will read these values, you will have to used the correspondent flavour method to get back the originl value (ex. javaLegacy())

Constructors

LegacyUuid(Uint8List content)
The ByteList Expected is in the desired legacy format to store
LegacyUuid.fromHexString(String hexString)
The hex String Expected is in the desired legacy format to store it can contain hyphens ('-').
factory
LegacyUuid.fromHexStringTocSharpLegacy(String hexString)
factory
LegacyUuid.fromHexStringToJavaLegacy(String hexString)
factory
LegacyUuid.fromHexStringToPhytonLegacy(String hexString)
factory
LegacyUuid.toCSharpLegacy(UuidValue? uuid)
factory
LegacyUuid.toJavaLegacy(UuidValue? uuid)
factory
LegacyUuid.toPythonLegacy(UuidValue? uuid)
factory

Properties

bsonBinary BsonBinary
The BsonBinary is in the desired legacy format to store
no setter
content Uint8List
final
cSharpLegacy → UuidValue
Returns an UuidValue Object for an Uuid stored in C# Legacy Format
no setter
cSharpLegacyUuid String
Returns an HexString for an Uuid stored in C# Legacy Format
no setter
hashCode int
The hash code for this object.
no setteroverride
javaLegacy → UuidValue
Returns an UuidValue Object for an Uuid stored in Java Legacy Format
no setter
javaLegacyUuid String
Returns an HexString for an Uuid stored in Java Legacy Format
no setter
pythonLegacy → UuidValue
Returns an UuidValue Object for an Uuid stored in Python Legacy Format
no setter
pythonLegacyUuid String
Returns an HexString for an Uuid stored in Python Legacy Format
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override