jeops.examples.monkeys
Class MEAConflictSet.CSEComparator

java.lang.Object
  |
  +--jeops.examples.monkeys.MEAConflictSet.CSEComparator
Enclosing class:
MEAConflictSet

private static class MEAConflictSet.CSEComparator
extends java.lang.Object
implements java.util.Comparator, java.io.Serializable

Inner class used to compare two conflict set elements (CSEs)

See Also:
Serialized Form

Constructor Summary
(package private) MEAConflictSet.CSEComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two conflict set elements (CSEs)
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this Comparator.
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

MEAConflictSet.CSEComparator

MEAConflictSet.CSEComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares two conflict set elements (CSEs)
Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - the first CSE.
o2 - the second CSE.
Returns:
a negative integer, zero, or a positive integer if the first argument is less than, equal to or greater than the second one.

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this Comparator.
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if the specified object is also a comparator and it imposes the same ordering as this comparator; false otherwise.