public class NodeList extends Vector<Node>
This class extends Vector to provide specialized methods for managing collections of Node objects. It includes methods for finding nodes by name or by name suffix.
capacityIncrement, elementCount, elementDatamodCount| Constructor and Description |
|---|
NodeList()
Creates an empty NodeList.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
getEndsWith(String name)
Gets the first node whose name ends with the specified string.
|
Node |
getNode(int n)
Gets the node at the specified index.
|
Node |
getNode(String name)
Gets the first node with the specified name.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, streampublic Node getEndsWith(String name)
name - the suffix to matchpublic Node getNode(int n)
n - the index of the node to retrieve