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 value,
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.
|
static Seq |
concat(Item item1,
Item item2)
Concatenates two items.
|
Iterator<Item> |
iterator() |
Seq |
seq(Type type)
Creates a sequence containing the current elements of this builder.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static Seq concat(Item item1, Item item2)
item1
- first itemitem2
- second itempublic TreeSeqBuilder addFront(Item item)
item
- item to addpublic TreeSeqBuilder add(Item item)
item
- item to addpublic TreeSeqBuilder add(Value value, QueryContext qc)
value
- value to appendqc
- query contextpublic Seq seq(Type type)
type
- type of all items in this sequence, can be null
Copyright © 2005–2023 BaseX Team. All rights reserved.