|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Heapable
An interface for keys in the heap. Allows the heap to make comparisons to upheap or downheap.
Heap
Method Summary | |
---|---|
boolean |
equalTo(Object other)
Determines if this key is equal to the other key. |
boolean |
greaterThan(Object other)
Determines if this key is greater than the other key. |
boolean |
lessThan(Object other)
Determines if this key is less than the other key. |
Method Detail |
---|
boolean greaterThan(Object other)
return (intValue() > ((Integer)other).intValue());
other
- the key to compare this key to.
boolean lessThan(Object other)
return (intValue() < ((Integer)other).intValue());
other
- the key to compare this key to.
boolean equalTo(Object other)
return (intValue() == ((Integer)other).intValue());
other
- the key to compare this key to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |