public class SequenceReorderDiff extends Diff
SequenceChangeDiff
.Modifier and Type | Class and Description |
---|---|
static interface |
SequenceReorderDiff.Processor |
Constructor and Description |
---|
SequenceReorderDiff(int fromIndex,
int toIndex,
int sequenceSize) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canProcess(Diff.Processor processor) |
protected void |
doProcess(Diff.Processor processor) |
boolean |
equals(java.lang.Object other) |
int |
getFromIndex()
Index of element before move
|
int |
getSequenceSize()
Size of sequence
|
int |
getToIndex()
New index for element after move
|
int |
hashCode() |
java.lang.String |
toString() |
protected boolean |
walkExpanded(RamaFunction1 fn) |
public SequenceReorderDiff(int fromIndex, int toIndex, int sequenceSize)
public int getFromIndex()
public int getToIndex()
public int getSequenceSize()
protected boolean walkExpanded(RamaFunction1 fn)
walkExpanded
in class Diff
protected void doProcess(Diff.Processor processor)
protected boolean canProcess(Diff.Processor processor)
canProcess
in class Diff
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object