public class SequenceInsertDiff extends Diff
SequenceChangeDiff
.Modifier and Type | Class and Description |
---|---|
static interface |
SequenceInsertDiff.Processor |
Constructor and Description |
---|
SequenceInsertDiff(int beforeIndex,
java.lang.Object elem,
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 |
getBeforeIndex()
Index where element was inserted
|
java.lang.Object |
getElem()
Inserted value
|
int |
getOldSize()
Size of sequence before the insert
|
int |
hashCode() |
java.lang.String |
toString() |
protected boolean |
walkExpanded(RamaFunction1 fn) |
public SequenceInsertDiff(int beforeIndex, java.lang.Object elem, int oldSize)
public int getBeforeIndex()
public java.lang.Object getElem()
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