Class UUID

  • All Implemented Interfaces:
    Referenceable

    public class UUID
    extends ProjectObject
    Represents a universal unique identifier, used by resources that need an unique indentity.

    To create a new UUID use the generate() method.

    • Constructor Summary

      Constructors 
      Constructor Description
      UUID​(java.lang.String uuid)
      Default constructor, which is not intended to be used by the API's end user.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      The equals implementation based on the UUID.
      static UUID generate()
      Generates a new universal unique identifier (UUID).
      java.lang.String getUUID()
      The string representation of the UUID.
      int hashCode()
      The hash code implementation based on the UUID.
      void setUUID​(java.lang.String uuid)
      The string representation of the UUID.
      java.lang.String toString()
      The string representation of the UUID.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UUID

        public UUID​(java.lang.String uuid)
        Default constructor, which is not intended to be used by the API's end user. Use generate() instead.
    • Method Detail

      • generate

        public static UUID generate()
        Generates a new universal unique identifier (UUID).
      • getUUID

        public java.lang.String getUUID()
        The string representation of the UUID.
      • setUUID

        public void setUUID​(java.lang.String uuid)
        The string representation of the UUID.
      • hashCode

        public int hashCode()
        The hash code implementation based on the UUID.
        Overrides:
        hashCode in class ProjectObject
      • equals

        public boolean equals​(java.lang.Object obj)
        The equals implementation based on the UUID.
        Overrides:
        equals in class ProjectObject
      • toString

        public java.lang.String toString()
        The string representation of the UUID.
        Overrides:
        toString in class java.lang.Object