|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eriksilkensen.sudoku.BestTime
public class BestTime
Represents a BestTime which holds a name and an integer. It can be compared to other BestTimes, and be Serialized for persistance.
| Constructor Summary | |
|---|---|
BestTime(java.lang.String name,
int time)
Creates a BestTime with the given name and time |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object other)
Compares this BestTime to another one using their times |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Returns this BestTime's name |
int |
getTime()
Returns this BestTime's time |
java.lang.String |
toString()
Returns a String representation of this BestTime |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BestTime(java.lang.String name,
int time)
| Method Detail |
|---|
public java.lang.String getName()
public int getTime()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparablepublic 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 | |||||||||