public abstract class StateNodeNodeList extends NodeList<StateNode>
StateNode
s.
For internal use only. May be renamed or removed in a future release.
NodeList.SetView<T extends Serializable>
Modifier | Constructor and Description |
---|---|
protected |
StateNodeNodeList(StateNode node)
Creates a new list for the given node.
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(int index,
StateNode item)
Inserts an item at the given index of the list.
|
protected void |
addAll(Collection<? extends StateNode> items)
Adds all provided items to the end of the list.
|
protected void |
clear()
Removes all nodes, including those not known by the server.
|
void |
forEachChild(Consumer<StateNode> action)
Passes each child node instance to the given consumer.
|
protected boolean |
isNodeValues()
Checks whether this list contains node values.
|
protected StateNode |
remove(int index)
Removes the item at the given index.
|
add, collectChanges, generateChangesFromEmpty, get, getChangeTracker, indexOf, iterator, onDetach, size
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach
protected StateNodeNodeList(StateNode node)
node
- the node that the list belongs toprotected boolean isNodeValues()
NodeList
isNodeValues
in class NodeList<StateNode>
true
if this list contains node values;
false
if this list contains primitive valuesprotected void add(int index, StateNode item)
NodeList
protected void addAll(Collection<? extends StateNode> items)
NodeList
protected StateNode remove(int index)
NodeList
protected void clear()
NodeList
public void forEachChild(Consumer<StateNode> action)
NodeFeature
forEachChild
in class NodeList<StateNode>
action
- the consumer that accepts each childCopyright © 2025. All rights reserved.