@Entity
public class Device
extends java.lang.Object
Constructor and Description |
---|
Device() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.UUID |
getId()
Returns the ID of the device
|
java.lang.String |
getName()
Returns the name of the device
|
int |
hashCode() |
void |
setId(java.util.UUID id)
Changes the value of the ID of the device
|
void |
setName(java.lang.String name)
Changes the name of the device
|
java.lang.String |
toString() |
public void setId(java.util.UUID id)
id
- the new ID of the devicepublic java.util.UUID getId()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the new name of the devicepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object