Package org.swtpra1.amazongame
Class Player
- java.lang.Object
-
- org.swtpra1.amazongame.Player
-
- All Implemented Interfaces:
java.io.Serializable
public class Player extends java.lang.Object implements java.io.Serializable
This class represents a single player.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Player(int playerId, java.lang.String playerName, java.lang.String playerUrl)
Constructs a player.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getName()
int
getPlayerId()
java.lang.String
getUrl()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getPlayerId
public int getPlayerId()
-
getName
public java.lang.String getName()
-
getUrl
public java.lang.String getUrl()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-