public class Thread
extends java.lang.Object
| Constructor and Description |
|---|
Thread() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getId()
Unique identifier for the thread.
|
java.lang.String |
getName()
A name of the thread.
|
int |
hashCode() |
void |
setId(int id)
Unique identifier for the thread.
|
void |
setName(java.lang.String name)
A name of the thread.
|
java.lang.String |
toString() |
@Pure public int getId()
public void setId(int id)
@Pure public java.lang.String getName()
public void setName(java.lang.String name)
@Pure public java.lang.String toString()
toString in class java.lang.Object@Pure public boolean equals(java.lang.Object obj)
equals in class java.lang.Object@Pure public int hashCode()
hashCode in class java.lang.Object