org.acm.seguin.pretty.sort
Class MultipleOrdering

java.lang.Object
  extended by org.acm.seguin.pretty.sort.MultipleOrdering
All Implemented Interfaces:
java.util.Comparator

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

Stores a number of orderings together and produce a single order from them

Author:
Chris Seguin

Constructor Summary
MultipleOrdering(Settings settings)
          Constructor for the MultipleOrdering object
MultipleOrdering(java.lang.String[] order)
          Constructor for testing purposes.
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

MultipleOrdering

public MultipleOrdering(Settings settings)
Constructor for the MultipleOrdering object

Parameters:
settings - Description of Parameter

MultipleOrdering

public MultipleOrdering(java.lang.String[] order)
Constructor for testing purposes. Takes the order strings in an array to start it off

Parameters:
order - Description of Parameter
Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
Description of the Method

Specified by:
compare in interface java.util.Comparator
Parameters:
obj1 - Description of Parameter
obj2 - Description of Parameter
Returns:
Description of the Returned Value