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.

Method Index

 o equalTo(Object)
Determines if this object is equal to another.
 o greaterThan(Object)
Determines if this object is greater than another.
 o lessThan(Object)
Determines if this object is less than another.

Methods

 o 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
 o 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
 o 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