Class Guid

java.lang.Object
com.spotfire.server.api.Guid
All Implemented Interfaces:
Serializable

public final class Guid extends Object implements Serializable
This class represents an universally unique identifier (UUID), also known as globally unique identifier (GUID), as defined in RFC 4122. A UUID represents a 128-bit value and is either guaranteed to be different from all other UUIDs/GUIDs generated until 3400 A.D., or extremely likely to be different.
Since:
10.1
See Also:
  • Constructor Details

    • Guid

      public Guid(String guid)
      Constructs a new Guid using the specified string representation as described in the toString() method.
      Parameters:
      guid - a string that specifies a Guid
      Throws:
      IllegalArgumentException - if guid does not conform to the string representation of a Guid as described in toString()
      Since:
      10.1
  • Method Details

    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Returns a String representation of this Guid. The Guid string representation is on the following format, where x represents a hexadecimal ([0-9][a-f][A-F]) digit, "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".

      The returned string is always in lower case.

      Overrides:
      toString in class Object
      Returns:
      a String representation of this Guid.
      Since:
      10.1