public static class ForestChange.Add extends ForestChange
ForestChange.Add, ForestChange.Move, ForestChange.Remove, ForestChange.Reorder, ForestChange.Visitor
Constructor and Description |
---|
Add(Forest addedForest,
long under,
long after)
Creates "add" change with a forest being added.
|
Add(long row,
long under,
long after)
Creates "add" change with one row being added.
|
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) |
Forest |
getAddedForest()
Returns the added forest.
|
long |
getAfter()
Returns the immediately preceding sibling of the first root of the added forest.
|
long |
getUnder()
Returns the parent of the (roots of the) added forest, 0 if top level.
|
int |
hashCode() |
String |
toString() |
add, move, remove, reorder
public Add(@NotNull Forest addedForest, long under, long after)
public Add(long row, long under, long after)
@NotNull public Forest getAddedForest()
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.