|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.persistence.IdMessageComparator
public class IdMessageComparator
A comparator class that iplements a message id comparison for PersistentMessage.
Note this class assumes that id's are in some sort of order, such that an earlier generated id is less than a later generated id.
Constructor Summary | |
---|---|
IdMessageComparator()
Default constructor does nothing. |
Method Summary | |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Implements the compare operator. |
boolean |
equals(java.lang.Object ob)
Indicates whether some other object is "equal to" this Comparator. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdMessageComparator()
Method Detail |
---|
public int compare(java.lang.Object o1, java.lang.Object o2) throws java.lang.ClassCastException, java.lang.NullPointerException
compare
in interface java.util.Comparator
Object
- object 1 to compareObject
- object 2 ro compare to.
java.lang.ClassCastException
- if object types are unknown
java.lang.NullPointerException
public boolean equals(java.lang.Object ob)
equals
in interface java.util.Comparator
equals
in class java.lang.Object
Object
- the object to compare to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |