public class Server extends java.lang.Object implements java.io.Serializable, NameAndIdObject
| Constructor and Description |
|---|
Server()
Initiates an empty server object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getId()
Returns the id of this server object
|
java.lang.String |
getName()
Returns the name of this server object
|
int |
hashCode() |
boolean |
isIdset()
Used to check if the id field of this server object has been changed
|
boolean |
isNameset()
Used to check if the name field of this server object has been changed
|
void |
setId(java.lang.Integer id)
Sets the id for this server object
|
void |
setName(java.lang.String name)
Sets the name for this server object
|
java.lang.String |
toString() |
public java.lang.Integer getId()
getId in interface NameAndIdObjectInteger containing the idpublic void setId(java.lang.Integer id)
setId in interface NameAndIdObjectid - An Integer containing the idpublic java.lang.String getName()
getName in interface NameAndIdObjectString containing the namepublic void setName(java.lang.String name)
setName in interface NameAndIdObjectname - A String containing the namepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isIdset()
public boolean isNameset()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object