Class UUIDv7

java.lang.Object
com.datastax.astra.client.model.UUIDv7

public class UUIDv7 extends Object
Materializing the UUIDv6 as a specialization class to drive serialization and deserialization.
  • Constructor Details

    • UUIDv7

      public UUIDv7()
      Default constructor.
    • UUIDv7

      public UUIDv7(UUID uuid)
      Constructor.
      Parameters:
      uuid - unique identifier
  • Method Details

    • toUUID

      public UUID toUUID()
      Return the Java Utils UUID.
      Returns:
      uuid value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromString

      public static UUIDv7 fromString(String strUUID)
      Generate from a string.
      Parameters:
      strUUID - uuid as a String
      Returns:
      an instance of UUIDv6