public static final class ImmutableNullableList.Builder<E> extends Object
| Constructor and Description |
|---|
ImmutableNullableList.Builder()
Creates a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableNullableList.Builder<E> |
add(E... elements)
Adds each element of
elements to the
ImmutableNullableList. |
ImmutableNullableList.Builder<E> |
add(E element)
Adds
element to the ImmutableNullableList. |
ImmutableNullableList.Builder<E> |
addAll(Iterable<? extends E> elements)
Adds each element of
elements to the
ImmutableNullableList. |
ImmutableNullableList.Builder<E> |
addAll(Iterator<? extends E> elements)
Adds each element of
elements to the
ImmutableNullableList. |
List<E> |
build()
Returns a newly-created
ImmutableNullableList based on the
contents of the Builder. |
public ImmutableNullableList.Builder()
ImmutableNullableList.builder().public ImmutableNullableList.Builder<E> add(E element)
element to the ImmutableNullableList.element - the element to addBuilder objectpublic ImmutableNullableList.Builder<E> addAll(Iterable<? extends E> elements)
elements to the
ImmutableNullableList.elements - the Iterable to add to the
ImmutableNullableListBuilder objectNullPointerException - if elements is nullpublic ImmutableNullableList.Builder<E> add(E... elements)
elements to the
ImmutableNullableList.elements - the elements to add to the ImmutableNullableListBuilder objectNullPointerException - if elements is nullpublic ImmutableNullableList.Builder<E> addAll(Iterator<? extends E> elements)
elements to the
ImmutableNullableList.elements - the elements to add to the ImmutableNullableListBuilder objectNullPointerException - if elements is nullCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.