Package org.basex.query.util.list
Class ItemList
Resizable-array implementation for items.
- Author:
- BaseX Team 2005-21, BSD License, Leo Woerteler
-
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
Modifier and TypeMethodDescriptionAdds all items of a value to the array.protected Item[]newArray(int s) Creates a resized array.value()Returns a value containing the items in this list.Returns a value with the type of the given expression.Returns a value with the type of the given expression.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
-
ItemList
public ItemList()Default constructor. -
ItemList
public ItemList(long capacity) Constructor with initial capacity.- Parameters:
capacity- array capacity
-
-
Method Details
-
add
Adds all items of a value to the array.- Parameters:
value- value to be added- Returns:
- self reference
-
value
Returns a value containing the items in this list.- Returns:
- the value
-
value
Returns a value with the type of the given expression.- Parameters:
type- type (can benull, only considered if new sequence is created)- Returns:
- the value
-
value
Returns a value with the type of the given expression.- Parameters:
expr- expression- Returns:
- the value
-
newArray
Description copied from class:ObjectListCreates a resized array.- Specified by:
newArrayin classObjectList<Item,ItemList> - Parameters:
s- size- Returns:
- array
-