|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.breeweb.slimconnect.data.Player
Constructor Summary | |
Player(int index,
java.lang.String id,
java.lang.String name)
constructs an Player object. |
Method Summary | |
int |
compareTo(java.lang.Object anObject)
|
boolean |
equals(java.lang.Object anObject)
|
java.lang.String |
getId()
Returns the current index number in the Slimp3Server. |
int |
getIndex()
|
java.lang.String |
getName()
Returns the name of the player |
int |
hashCode()
|
void |
setId(java.lang.String string)
Sets the ID of the player |
void |
setIndex(int i)
sets the current index number in the Slimp3Server / Squeezebox server. |
void |
setName(java.lang.String string)
The name of the player |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Player(int index, java.lang.String id, java.lang.String name)
index
- the current index in the Squeezebox server.id
- the ID of the playername
- the name of the player.Method Detail |
public boolean equals(java.lang.Object anObject)
public int hashCode()
public int compareTo(java.lang.Object anObject)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
public java.lang.String getId()
public java.lang.String getName()
public int getIndex()
public void setId(java.lang.String string)
ID
of the player
string
- the current ID
public void setName(java.lang.String string)
string
- the name of the playerpublic void setIndex(int i)
i
- the index within the Squeezebox server
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |