Constructor and Description |
---|
TreeSeqBuilder() |
Modifier and Type | Method and Description |
---|---|
TreeSeqBuilder |
add(Item item)
Adds an item to the end of the array.
|
TreeSeqBuilder |
add(Value val,
QueryContext qc)
Appends the items of the given value to this builder.
|
TreeSeqBuilder |
addFront(Item item)
Adds an item to the start of the array.
|
Iterator<Item> |
iterator() |
Seq |
seq(Type type)
Creates a sequence containing the current elements of this builder.
|
String |
toString() |
static Seq |
value(Item[] items,
int size,
Type type)
Returns a
Value representation of the given items. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static Seq value(Item[] items, int size, Type type)
Value
representation of the given items.items
- array containing the itemssize
- number of items (must be 2
or more)type
- type (can be null
)public TreeSeqBuilder addFront(Item item)
item
- item to addpublic TreeSeqBuilder add(Item item)
item
- item to addpublic TreeSeqBuilder add(Value val, QueryContext qc)
val
- value to appendqc
- query contextpublic Seq seq(Type type)
type
- type of all items in this sequence, can be null
Copyright © 2005–2019 BaseX Team. All rights reserved.