Class SequenceInsertsDiff

java.lang.Object
com.rpl.rama.diffs.Diff
com.rpl.rama.diffs.SequenceInsertsDiff

public class SequenceInsertsDiff extends Diff
Represents multiple values being inserted at some index in a sequence. Top-level diff. Expands to SequenceChangeDiff.
See Also:
  • Constructor Details

    • SequenceInsertsDiff

      public SequenceInsertsDiff(int beforeIndex, List<Object> elems, int oldSize)
  • Method Details

    • getBeforeIndex

      public int getBeforeIndex()
      Index where elements were inserted
    • getElems

      public List<Object> getElems()
      Inserted elements
    • getOldSize

      public int getOldSize()
      Size of sequence before inserts
    • walkExpanded

      protected boolean walkExpanded(RamaFunction1 fn)
      Overrides:
      walkExpanded in class Diff
    • doProcess

      protected void doProcess(Diff.Processor processor)
      Specified by:
      doProcess in class Diff
    • canProcess

      protected boolean canProcess(Diff.Processor processor)
      Specified by:
      canProcess in class Diff
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object