public final class NodeVariableCollection extends AbstractList<Variable>
.modCount| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Variable item)
Inserts an element into the collection at the specified index.
|
void |
clear()
Removes all elements from the collection.
|
boolean |
contains(Object o)
Determines whether a
Variable is in the collection. |
Variable |
get(int index)
Gets the
Variable object at the specified index. |
Variable |
get(String name)
Performs a case sensitive lookup.
|
Variable |
get(String name,
boolean throwIfNotFound)
Performs a case sensitive lookup.
|
Node |
getNode()
The
Node the collection belongs to. |
int |
indexOf(Object o)
Determines the index of a specific
Variable in the collection. |
Variable |
remove(int index)
Removes an element from the collection at the specified index.
|
boolean |
remove(Variable item)
Removes the
Variable from the collection. |
Variable |
set(int index,
Variable value)
Sets the
Variable object at the specified index. |
int |
size()
Gets the number of elements contained in the
NodeVariableCollection instance. |
add, addAll, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic int size()
NodeVariableCollection instance.size in interface Collection<Variable>size in interface List<Variable>size in class AbstractCollection<Variable>public boolean contains(Object o)
Variable is in the collection.contains in interface Collection<Variable>contains in interface List<Variable>contains in class AbstractCollection<Variable>o - The Variable to locate in the collection. The value can be null.public void add(int index,
Variable item)
add in interface List<Variable>add in class AbstractList<Variable>index - The zero based index at which to add the element.item - The item to insert. Cannot be null.NullPointerException - Raised if [item] is null.IllegalStateException - Raised if the new variable already belongs to a node.IllegalArgumentException - index is less than 0.-or-index is equal to or greater than the collection count.public void clear()
clear in interface Collection<Variable>clear in interface List<Variable>clear in class AbstractList<Variable>public boolean remove(Variable item)
Variable from the collection.item - The Variable to be removed from the collection.NullPointerException - Raised if [item] is null.public Variable remove(int index)
remove in interface List<Variable>remove in class AbstractList<Variable>index - The zero based index at which to remove the element.IllegalArgumentException - index is less than 0.-or-index is equal to or greater than the collection count.Copyright © 2021. All rights reserved.