public static class ForestChange.Reorder extends ForestChange
ForestChange.Add, ForestChange.Move, ForestChange.Remove, ForestChange.Reorder, ForestChange.Visitor
Constructor and Description |
---|
Reorder(long under,
LongList children)
Creates a "reorder" change.
|
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) |
LongList |
getChildren()
Returns the new order of the child elements.
|
long |
getUnder()
Returns the parent of the reordered rows, 0 if top-level rows are reordered.
|
int |
hashCode() |
String |
toString() |
add, move, remove, reorder
public Reorder(long under, @NotNull LongList children)
public long getUnder()
@NotNull public LongList getChildren()
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.