Class GlobalID

  • Direct Known Subclasses:
    JobID, UGCHandle

    public class GlobalID
    extends java.lang.Object
    Represents a globally unique identifier within the Steam network. Guaranteed to be unique across all racks and servers for a given Steam universe.
    • Constructor Summary

      Constructors 
      Constructor Description
      GlobalID()
      Initializes a new instance of the GlobalID class.
      GlobalID​(long gid)
      Initializes a new instance of the GlobalID class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Determines whether the specified Object is equal to this instance.
      long getBoxID()
      Gets the box ID of the server that generated this GID.
      long getProcessID()
      Gets the process ID of the server that generated this GID.
      long getSequentialCount()
      Gets the sequential count for this GID.
      java.util.Date getStartTime()
      Gets the start time of the server that generated this GID.
      long getValue()
      Sets the entire 64bit value of this GID.
      int hashCode()
      Returns a hash code for this instance.
      void setBoxID​(long value)
      Sets the box ID of the server that generated this GID.
      void setProcessID​(long value)
      Sets the process ID of the server that generated this GID.
      void setSequentialCount​(long value)
      Sets the sequential count for this GID.
      void setStartTime​(java.util.Date startTime)
      Sets the start time of the server that generated this GID.
      void setValue​(long value)
      Sets the entire 64bit value of this GID.
      java.lang.String toString()
      Returns a String that represents this instance.
      • Methods inherited from class java.lang.Object

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

      • GlobalID

        public GlobalID()
        Initializes a new instance of the GlobalID class.
      • GlobalID

        public GlobalID​(long gid)
        Initializes a new instance of the GlobalID class.
        Parameters:
        gid - The GID value.
    • Method Detail

      • setSequentialCount

        public void setSequentialCount​(long value)
        Sets the sequential count for this GID.
        Parameters:
        value - The sequential count.
      • getSequentialCount

        public long getSequentialCount()
        Gets the sequential count for this GID.
        Returns:
        The sequential count.
      • setStartTime

        public void setStartTime​(java.util.Date startTime)
        Sets the start time of the server that generated this GID.
        Parameters:
        startTime - The start time.
      • getStartTime

        public java.util.Date getStartTime()
        Gets the start time of the server that generated this GID.
        Returns:
        The start time.
      • setProcessID

        public void setProcessID​(long value)
        Sets the process ID of the server that generated this GID.
        Parameters:
        value - The process ID.
      • getProcessID

        public long getProcessID()
        Gets the process ID of the server that generated this GID.
        Returns:
        The process ID.
      • setBoxID

        public void setBoxID​(long value)
        Sets the box ID of the server that generated this GID.
        Parameters:
        value - The box ID.
      • getBoxID

        public long getBoxID()
        Gets the box ID of the server that generated this GID.
        Returns:
        The box ID.
      • setValue

        public void setValue​(long value)
        Sets the entire 64bit value of this GID.
        Parameters:
        value - The value.
      • getValue

        public long getValue()
        Sets the entire 64bit value of this GID.
        Returns:
        The value.
      • equals

        public boolean equals​(java.lang.Object obj)
        Determines whether the specified Object is equal to this instance.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The Object to compare with this instance.
        Returns:
        true if the specified Object is equal to this instance; otherwise, false.
      • hashCode

        public int hashCode()
        Returns a hash code for this instance.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
      • toString

        public java.lang.String toString()
        Returns a String that represents this instance.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A String that represents this instance.