Package com.rpl.rama.diffs
Class SequenceInsertDiff
java.lang.Object
com.rpl.rama.diffs.Diff
com.rpl.rama.diffs.SequenceInsertDiff
Represents a value being inserted at some index in a sequence. 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 where element was insertedgetElem()Inserted valueintSize of sequence before the insertinthashCode()toString()protected boolean
-
Constructor Details
-
SequenceInsertDiff
-
-
Method Details
-
getBeforeIndex
public int getBeforeIndex()Index where element was inserted -
getElem
Inserted value -
getOldSize
public int getOldSize()Size of sequence before the insert -
walkExpanded
- Overrides:
walkExpandedin classDiff
-
doProcess
-
canProcess
- Specified by:
canProcessin classDiff
-
equals
-
hashCode
public int hashCode() -
toString
-