Class AppendDiff

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

public class AppendDiff extends Diff
Represents an unknown value being appended to a sequence. Not a top-level diff, but can be part of expansion of other top-level diffs.
See Also:
  • Constructor Details

    • AppendDiff

      public AppendDiff(int index)
  • Method Details

    • getIndex

      public int getIndex()
      Index of append, same as size of sequence before the append
    • 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