Interface mjr.util.Comparable
All Packages Class Hierarchy This Package Previous Next Index
Interface mjr.util.Comparable
- public interface Comparable
- extends Object
A comparable object is one that can be compared to others.
-
equalTo(Object)
- Determines if this object is equal to another.
-
greaterThan(Object)
- Determines if this object is greater than another.
-
lessThan(Object)
- Determines if this object is less than another.
greaterThan
public abstract boolean greaterThan(Object other)
- Determines if this object is greater than another.
- Parameters:
- other - the object on the right-hand side of the comparison
- Returns:
- true if this object is greater than the other
lessThan
public abstract boolean lessThan(Object other)
- Determines if this object is less than another.
- Parameters:
- other - the object on the right-hand side of the comparison
- Returns:
- true if this object is less than the other
equalTo
public abstract boolean equalTo(Object other)
- Determines if this object is equal to another.
- Parameters:
- other - the object on the right-hand side of the comparison
- Returns:
- true if this object is equal to the other
All Packages Class Hierarchy This Package Previous Next Index