public class ModelList extends StateNodeNodeList
For internal use only. May be renamed or removed in a future release.
NodeList.SetView<T extends Serializable>
Constructor and Description |
---|
ModelList(StateNode node)
Creates an instance of this node feature.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
StateNode item)
Inserts an item at the given index of the list.
|
void |
add(StateNode item)
Adds an item to the end of the list.
|
void |
addAll(Collection<? extends StateNode> items)
Adds all provided items to the end of the list.
|
void |
clear()
Removes all nodes, including those not known by the server.
|
boolean |
contains(StateNode node)
Returns true if this list contains the specified node.
|
StateNode |
get(int index)
Gets the item at the given index.
|
int |
indexOf(StateNode item)
Gets the position of a value in the list.
|
StateNode |
remove(int index)
Removes the item at the given index.
|
int |
size()
Gets the number of items in this list.
|
forEachChild, isNodeValues
collectChanges, generateChangesFromEmpty, getChangeTracker, iterator, onDetach
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach
public ModelList(StateNode node)
node
- the node that the feature belongs topublic int size()
NodeList
public StateNode get(int index)
NodeList
public void add(StateNode item)
NodeList
public void add(int index, StateNode item)
NodeList
add
in class StateNodeNodeList
index
- index to insert atitem
- the item to insertpublic StateNode remove(int index)
NodeList
remove
in class StateNodeNodeList
index
- index of the item to removepublic void clear()
NodeList
clear
in class StateNodeNodeList
public void addAll(Collection<? extends StateNode> items)
NodeList
addAll
in class StateNodeNodeList
items
- a collection of items to add, not nullpublic boolean contains(StateNode node)
node
- node whose presence in this list is to be testedCopyright © 2025. All rights reserved.