|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.hagenah.diplomacy.game.Judge
public class Judge
This class represents a judge.
| Constructor Summary | |
|---|---|
Judge(java.lang.String name,
java.lang.String email,
java.lang.String secondaryemail,
java.lang.String footer)
Creates a new judge. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compares two judges by name. |
boolean |
equals(java.lang.Object obj)
Indicates whether obj is "equal to" this one. |
java.lang.String |
getEmail()
Returns the e-mail of the judge |
java.lang.String |
getFooter()
Returns the begin of the footer |
static Judge |
getJudge(java.util.Collection judges,
java.lang.String name,
java.lang.String email)
Returns the judge with the specified name and email address. |
java.lang.String |
getName()
Returns the name of the judge |
java.lang.String |
getSecondaryEmail()
Returns the e-mail of the judge |
int |
hashCode()
Returns a hashcode for this judge. |
java.lang.String |
toString()
Returns the name of the judge. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Judge(java.lang.String name,
java.lang.String email,
java.lang.String secondaryemail,
java.lang.String footer)
name - The name of the judgeemail - The email address of the judgesecondaryemail - The secondary email address of the judgefooter - The begin of the footer, empty string for no footer| Method Detail |
|---|
public static Judge getJudge(java.util.Collection judges,
java.lang.String name,
java.lang.String email)
judges - A collection of judgesname - The name of the judge (can be null)email - The email address of the judge (can be null)
public java.lang.String getName()
public java.lang.String getEmail()
public java.lang.String getSecondaryEmail()
public java.lang.String getFooter()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The other obj
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparableobj - The other obj
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||