Package com.rpl.rama.diffs
Class SequenceReorderDiff
java.lang.Object
com.rpl.rama.diffs.Diff
com.rpl.rama.diffs.SequenceReorderDiff
Represents a value in a sequence being moved from one index to another, shifting other values to new indexes
in the process. Top-level diff. Expands to
SequenceChangeDiff.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanProcess(Diff.Processor processor) protected voiddoProcess(Diff.Processor processor) booleanintIndex of element before moveintSize of sequenceintNew index for element after moveinthashCode()toString()protected boolean
-
Constructor Details
-
SequenceReorderDiff
public SequenceReorderDiff(int fromIndex, int toIndex, int sequenceSize)
-
-
Method Details
-
getFromIndex
public int getFromIndex()Index of element before move -
getToIndex
public int getToIndex()New index for element after move -
getSequenceSize
public int getSequenceSize()Size of sequence -
walkExpanded
- Overrides:
walkExpandedin classDiff
-
doProcess
-
canProcess
- Specified by:
canProcessin classDiff
-
equals
-
hashCode
public int hashCode() -
toString
-