|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.lease.LeaseComparator
The LeaseComparator is usedto sort leases based on the expiration time
Constructor Summary | |
LeaseComparator()
|
Method Summary | |
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Compare two objects and return 0 if they are equal, a negative integer if the first argument is less than the second argument and a positive number if the first argument is greater than the second argument |
boolean |
equals(java.lang.Object comparator)
Return true if the specified comparator matches this object and false otherwise |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LeaseComparator()
Method Detail |
public int compare(java.lang.Object obj1, java.lang.Object obj2)
It will throw ClassCastException if either obj1 or obj2 are not of type BaseLease
compare
in interface java.util.Comparator
obj1
- first object to compareobj2
- second object to comparepublic boolean equals(java.lang.Object comparator)
equals
in interface java.util.Comparator
equals
in class java.lang.Object
comparator
- comparator to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |