E - the type of elements in this column builderpublic interface ColumnBuilder<E>
Column instances. See concrete implementations
for additional details:
| Modifier and Type | Method and Description |
|---|---|
ColumnBuilder<E> |
add(E element)
Adds
element to the column. |
ColumnBuilder<E> |
add(E element,
E... rest)
Adds a sequence of
elements to the column. |
ColumnBuilder<E> |
addAll(Collection<E> elements)
Adds each element of
elements to the column. |
ColumnBuilder<E> |
addAll(E[] elements)
Adds each element of
elements to the column. |
ColumnBuilder<E> |
addAll(Iterable<E> elements)
Adds each element of
elements to the column. |
ColumnBuilder<E> |
addAll(Iterator<E> elements)
Adds each element of
elements to the column. |
ColumnBuilder<E> |
addNull()
Adds a single
null element to the column. |
ColumnBuilder<E> |
addNulls(int count)
Adds the specified number of nulls to the column.
|
Column<E> |
build()
Returns a newly-created
Column based on the contents of this builder. |
ColumnBuilder<E> |
ensureCapacity(int minCapacity)
Increases the capacity of this ColumnBuilder instance, if necessary, to
ensure that it can hold at least the number of elements specified by the
minimum capacity argument.
|
ColumnType<E> |
getType()
|
int |
size()
Returns the number of elements added to this builder so far.
|
ColumnType<E> getType()
Column<E> build()
Column based on the contents of this builder.Column based on the contents of this builder.ColumnBuilder<E> addNull()
null element to the column.ColumnBuilder<E> addNulls(int count)
count - - the number of nulls to addIllegalArgumentException - if count is negativeColumnBuilder<E> add(E element)
element to the column.element - the element to addColumnBuilder<E> add(E element, E... rest)
elements to the column.element - an element to add to the columnrest - additional elements to add to the columnColumnBuilder<E> addAll(E[] elements)
elements to the column.elements - the elements to be added to the columnColumnBuilder<E> addAll(Collection<E> elements)
elements to the column.elements - the elements to be added to the columnColumnBuilder<E> addAll(Iterator<E> elements)
elements to the column.elements - the elements to be added to the columnColumnBuilder<E> addAll(Iterable<E> elements)
elements to the column.elements - the elements to be added to the columnColumnBuilder<E> ensureCapacity(int minCapacity)
minCapacity - the desired minimum capacityint size()
Copyright © 2020. All rights reserved.