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, isNodeValuescollectChanges, generateChangesFromEmpty, getChangeTracker, iterator, onDetachallowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttachpublic ModelList(StateNode node)
node - the node that the feature belongs topublic int size()
NodeListpublic StateNode get(int index)
NodeListpublic void add(StateNode item)
NodeListpublic void add(int index,
StateNode item)
NodeListadd in class StateNodeNodeListindex - index to insert atitem - the item to insertpublic StateNode remove(int index)
NodeListremove in class StateNodeNodeListindex - index of the item to removepublic void clear()
NodeListclear in class StateNodeNodeListpublic void addAll(Collection<? extends StateNode> items)
NodeListaddAll in class StateNodeNodeListitems - 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.