Package org.basex.query.util.list
Class ANodeList
Resizable-array implementation for nodes.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.util.list.ObjectList
listFields inherited from class org.basex.util.list.ElementList
factor, size -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.basex.util.list.ObjectList
add, add, add, addUnique, contains, finish, get, insert, iterator, next, peek, pop, push, remove, removeAll, removeAll, set, sort, toArray, toString, uniqueMethods inherited from class org.basex.util.list.ElementList
isEmpty, newCapacity, newCapacity, reset, size, sizeMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ANodeList
public ANodeList()Constructor. -
ANodeList
public ANodeList(long capacity) Constructor with initial capacity.- Parameters:
capacity- array capacity
-
-
Method Details
-
iter
Returns an iterator over the items in this list. The list must not be modified after the iterator has been requested.- Returns:
- the iterator
-
clean
Invalidates all entries that are not referenced in the list.- Returns:
- the iterator
-
equals
Description copied from class:ObjectListCompares two list elements.- Overrides:
equalsin classObjectList<ANode,ANodeList> - Parameters:
node1- first elementnode2- second element- Returns:
- result of check
-
newArray
Description copied from class:ObjectListCreates a resized array.- Specified by:
newArrayin classObjectList<ANode,ANodeList> - Parameters:
s- size- Returns:
- array
-
equals
- Overrides:
equalsin classObjectList<ANode,ANodeList>
-