Class Thread


  • public class Thread
    extends java.lang.Object
    A Thread
    • Constructor Summary

      Constructors 
      Constructor Description
      Thread()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int getId()
      Unique identifier for the thread.
      java.lang.String getName()
      The name of the thread.
      int hashCode()  
      void setId​(int id)
      Unique identifier for the thread.
      void setName​(java.lang.String name)
      The name of the thread.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Thread

        public Thread()
    • Method Detail

      • getId

        public int getId()
        Unique identifier for the thread.
      • setId

        public void setId​(int id)
        Unique identifier for the thread.
      • getName

        public java.lang.String getName()
        The name of the thread.
      • setName

        public void setName​(java.lang.String name)
        The name of the thread.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object