Class ForestChange.Remove
Object
ForestChange
Remove
- Enclosing class:
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class ForestChange
ForestChange.Add, ForestChange.Move, ForestChange.Remove, ForestChange.Reorder, ForestChange.Visitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ForestChange.Visitor visitor) Apply the change to the visitorvoidapply(ArrayForest forest) Given mutable forest, apply the change to it.booleanLongListReturns the removed rows.inthashCode()toString()Methods inherited from class ForestChange
add, move, remove, reorder
-
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
Description copied from class:ForestChangeGiven mutable forest, apply the change to it.- Specified by:
applyin classForestChange- Parameters:
forest- forest to change
-
accept
Description copied from class:ForestChangeApply the change to the visitor- Specified by:
acceptin classForestChange- Parameters:
visitor- receiver of the call based on the type of this change
-
equals
-
hashCode
public int hashCode() -
toString
-