java.lang.Object
com.pervasive.datarush.commons.util.GUID
All Implemented Interfaces:
Serializable

public final class GUID extends Object implements Serializable
A globally unique identifier. Every identifier is distinct from all other identifiers.

The implementation is built using VMID and has the same constraints as described in the Javadoc for that class.

See Also:
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      public static GUID parse(String str)
      Creates a new identifier from a string.

      This method can be used to produce multiple objects with the same ID, violating uniqueness. It is intended to be used for testing purposes only in cases where the same ID is required every time.

      Parameters:
      str - the identifier to use
      Returns:
      a new identifier
    • next

      public static GUID next()
      Generates a new unique identifier. Identifiers are generated using VMID and therefore follow the same constraints enumerated within the Javadoc for that class.
      Returns:
      a new unique identifier