org.acm.seguin.pretty.sort
Class SameOrdering

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

public class SameOrdering
extends Ordering

Does not change the order

Author:
Chris Seguin

Constructor Summary
SameOrdering()
           
 
Method Summary
protected  int getIndex(java.lang.Object object)
          Return the index of the item in the order array
 
Methods inherited from class org.acm.seguin.pretty.sort.Ordering
compare
 
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

SameOrdering

public SameOrdering()
Method Detail

getIndex

protected int getIndex(java.lang.Object object)
Return the index of the item in the order array

Specified by:
getIndex in class Ordering
Parameters:
object - the object we are checking
Returns:
the objects index if it is found or 7 if it is not