client.framework.models
Interface Comparable
- All Known Implementing Classes:
- AbstractPlayer, BBPlayer
public interface Comparable
Interface allowing comparation of two objects.
Works similar to the Comparable
interface found in J2SE.
- Author:
- Eivind Sorteberg, Martin Jarrett
Method Summary |
int |
compareTo(Comparable object)
Compares the object implementing the
method to the object passed as input parameter. |
compareTo
int compareTo(Comparable object)
- Compares the object implementing the
method to the object passed as input parameter.
Returns a negative value if the implementing
object is less than the input object, positive if
the implementing object is greater and 0 if they
are equal.
- Parameters:
object
- The object to compare to.
- Returns:
- Positive value if the implementing object is
the greater, negative if it is smaller and 0 if they
are equal.