public class SequenceChangeDiff extends Diff
KeysRemoveDiff
, KeysDiff
,
and AppendDiff
.Modifier and Type | Class and Description |
---|---|
static interface |
SequenceChangeDiff.Processor |
Constructor and Description |
---|
SequenceChangeDiff(int fromIndex,
int newSize,
int oldSize) |
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()
Sequence changed for every index after this index
|
int |
getNewSize()
Size of sequence after change
|
int |
getOldSize()
Size of sequence before change
|
int |
hashCode() |
java.lang.String |
toString() |
protected boolean |
walkExpanded(RamaFunction1 fn) |
public SequenceChangeDiff(int fromIndex, int newSize, int oldSize)
public int getFromIndex()
public int getNewSize()
public int getOldSize()
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