org.eclipse.hyades.uml2sd.util
Class SortAsyncMessageComparator
java.lang.Object
org.eclipse.hyades.uml2sd.util.SortAsyncMessageComparator
- All Implemented Interfaces:
- java.util.Comparator
public class SortAsyncMessageComparator
- extends java.lang.Object
- implements java.util.Comparator
Asynchronous message comparator
Compare two AsyncMessages only taking into account
the event occurrence when their appear.
Used to order the AsyncMessage list insuring that
next node has one of his ends greater than the current node
|
Method Summary |
int |
compare(java.lang.Object arg0,
java.lang.Object arg1)
Compares two synchronous syncMessages
Returns 0 (equal) if one of the message is not synchrnous |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
equals |
SortAsyncMessageComparator
public SortAsyncMessageComparator()
compare
public int compare(java.lang.Object arg0,
java.lang.Object arg1)
- Compares two synchronous syncMessages
Returns 0 (equal) if one of the message is not synchrnous
- Specified by:
compare in interface java.util.Comparator
- Returns:
- 1 if arg0 is greater, 0 if equal, -1 otherwise