fsmvis.gui
Class IndicesComparator

java.lang.Object
  |
  +--fsmvis.gui.IndicesComparator

public class IndicesComparator
extends java.lang.Object
implements java.util.Comparator


Constructor Summary
IndicesComparator(java.util.ArrayList values)
          constructor: takes an arraylist of values, the contents will be used to determine if indices are gt or lt or eq to each other.
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares its two arguments for order.
 boolean equals(java.lang.Object obj)
          Define whether or not this class is equivalent to some other object, never used in this implementation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndicesComparator

public IndicesComparator(java.util.ArrayList values)
constructor: takes an arraylist of values, the contents will be used to determine if indices are gt or lt or eq to each other. Assumes that all values are comparable.
Parameters:
values -  
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares its two arguments for order. Uses the arraylist of values to calc this.
Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - The first object to be compared
o2 - The other object to be compared
Returns:
The result of the comparison

equals

public boolean equals(java.lang.Object obj)
Define whether or not this class is equivalent to some other object, never used in this implementation
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object