public static class ForestChange.Move extends ForestChange
ForestChange.Add, ForestChange.Move, ForestChange.Remove, ForestChange.Reorder, ForestChange.Visitor
Constructor and Description |
---|
Move(LongList movedRows,
long under,
long after) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ForestChange.Visitor visitor)
Apply the change to the visitor
|
void |
apply(ArrayForest forest)
Given mutable forest, apply the change to it.
|
boolean |
equals(Object o) |
long |
getAfter()
Returns the new immediately preceding sibling of the first moved row, 0 if none.
|
LongList |
getMovedRows()
Returns the moved rows.
|
long |
getUnder()
Returns the new parent of the moved row, 0 if top level.
|
int |
hashCode() |
String |
toString() |
add, move, remove, reorder
@NotNull public LongList getMovedRows()
public long getUnder()
public long getAfter()
public void apply(@NotNull ArrayForest forest)
ForestChange
apply
in class ForestChange
forest
- forest to changepublic void accept(ForestChange.Visitor visitor)
ForestChange
accept
in class ForestChange
visitor
- receiver of the call based on the type of this changeCopyright © 2024 Tempo Software. All Rights Reserved.