net.innig.collect
Class ListDiff.Move

java.lang.Object
  extended by net.innig.collect.ListDiff.Step
      extended by net.innig.collect.ListDiff.Move
Enclosing class:
ListDiff

public final class ListDiff.Move
extends ListDiff.Step

A list transformation step: move an object from one position to another. Before the move, object is at index; after the move, object is at toIndex. Items in the list between index and toIndex shift over one position to accomodate the move.


Constructor Summary
ListDiff.Move(java.lang.Object object, int index, int toIndex)
           
 
Method Summary
 int getToIndex()
           
 java.lang.String toString()
           
 
Methods inherited from class net.innig.collect.ListDiff.Step
getIndex, getObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListDiff.Move

public ListDiff.Move(java.lang.Object object,
                     int index,
                     int toIndex)
Method Detail

getToIndex

public int getToIndex()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object