Package org.basex.query.util.list
Class ValueList
Resizable-array implementation for values.
- 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, equals, equals, 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
-
ValueList
public ValueList()Default constructor. -
ValueList
public ValueList(long capacity) Constructor with initial capacity.- Parameters:
capacity- array capacity
-
-
Method Details
-
array
Creates an XQuery array from the contents of this list.- Returns:
- the array
-
newArray
Description copied from class:ObjectListCreates a resized array.- Specified by:
newArrayin classObjectList<Value,ValueList> - Parameters:
s- size- Returns:
- array
-