org.egothor.util.sort
Class PermutedSequence<T>

java.lang.Object
  extended by org.egothor.util.sort.PermutedSequence<T>
All Implemented Interfaces:
Sequence<T>

public abstract class PermutedSequence<T>
extends java.lang.Object
implements Sequence<T>


Constructor Summary
PermutedSequence(Permutation perm, Sequence<T> orig)
           
 
Method Summary
abstract  int getOldID(T obj)
           
 T next()
          Return the next item in the iteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermutedSequence

public PermutedSequence(Permutation perm,
                        Sequence<T> orig)
Method Detail

getOldID

public abstract int getOldID(T obj)

next

public T next()
Description copied from interface: Sequence
Return the next item in the iteration.

Specified by:
next in interface Sequence<T>
Returns:
the item