Class ForestChange.Remove

Enclosing class:
ForestChange

public static class ForestChange.Remove extends ForestChange
Represents removal of one or more rows. If the rows have sub-rows, they are removed too. The list of rows may contain rows from under different parent rows.
  • Constructor Details

    • Remove

      public Remove(@NotNull LongList removedRows)
      Constructs "remove" change of the given rows.
  • Method Details

    • getRemovedRows

      @NotNull public LongList getRemovedRows()
      Returns the removed rows. All sub-rows of the listed rows will also be removed.
    • apply

      public void apply(@NotNull ArrayForest forest)
      Description copied from class: ForestChange
      Given mutable forest, apply the change to it.
      Specified by:
      apply in class ForestChange
      Parameters:
      forest - forest to change
    • accept

      public void accept(ForestChange.Visitor visitor)
      Description copied from class: ForestChange
      Apply the change to the visitor
      Specified by:
      accept in class ForestChange
      Parameters:
      visitor - receiver of the call based on the type of this change
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object