All Packages Class Hierarchy This Package Previous Next Index
Interface com.ibm.beans.util.Comparable
- public interface interface Comparable
This interface is used by the PriorityQueue class to compare two objects.
-
isEqualTo(Object, Object)
- Determines if an object is equal to another object.
-
isGreaterThan(Object, Object)
- Determines if an object is greater than another object.
-
isLessThan(Object, Object)
- Determines if an object is less than another object.
isLessThan
public abstract boolean isLessThan(Object x,
Object y)
- Determines if an object is less than another object.
- Parameters:
- x - The operand on the left side of the comparison.
- y - The operand on the right side of the comparison.
- Returns:
-
true
if x < y; false
otherwise.
isGreaterThan
public abstract boolean isGreaterThan(Object x,
Object y)
- Determines if an object is greater than another object.
- Parameters:
- x - The operand on the left side of the comparison.
- y - The operand on the right side of the comparison.
- Returns:
-
true
if x > y; false
otherwise.
isEqualTo
public abstract boolean isEqualTo(Object x,
Object y)
- Determines if an object is equal to another object.
- Parameters:
- x - The operand on the left side of the comparison.
- y - The operand on the right side of the comparison.
- Returns:
-
true
if x == y; false
otherwise.
All Packages Class Hierarchy This Package Previous Next Index