jfreerails.network
Class NameAndPassword

java.lang.Object
  extended by jfreerails.network.NameAndPassword
All Implemented Interfaces:
java.io.Serializable

public class NameAndPassword
extends java.lang.Object
implements java.io.Serializable

Used by the server to store a player's username and password.

Author:
Luke
See Also:
Serialized Form

Field Summary
 java.lang.String password
           
private static long serialVersionUID
           
 java.lang.String username
           
 
Constructor Summary
NameAndPassword(java.lang.String u, java.lang.String p)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

password

public final java.lang.String password

username

public final java.lang.String username
Constructor Detail

NameAndPassword

public NameAndPassword(java.lang.String u,
                       java.lang.String p)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object