com.eriksilkensen.sudoku
Class BestTime

java.lang.Object
  extended by com.eriksilkensen.sudoku.BestTime
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class BestTime
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Represents a BestTime which holds a name and an integer. It can be compared to other BestTimes, and be Serialized for persistance.

Since:
1.0.1
Version:
02/13/07
Author:
Erik Silkensen
See Also:
Serialized Form

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

BestTime

public BestTime(java.lang.String name,
                int time)
Creates a BestTime with the given name and time

Method Detail

getName

public java.lang.String getName()
Returns this BestTime's name


getTime

public int getTime()
Returns this BestTime's time


equals

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

compareTo

public int compareTo(java.lang.Object other)
Compares this BestTime to another one using their times

Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Returns a String representation of this BestTime

Overrides:
toString in class java.lang.Object