|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.javimmutable.collections.list.JImmutableArrayList.Builder<T>
public static class JImmutableArrayList.Builder<T>
Constructor Summary | |
---|---|
JImmutableArrayList.Builder()
|
Method Summary | ||
---|---|---|
JImmutableArrayList.Builder<T> |
add(Collection<? extends T> source)
Adds all values in the Collection to the values included in the collection when build() is called. |
|
JImmutableArrayList.Builder<T> |
add(Cursor<? extends T> source)
Adds all values in the Cursor to the values included in the collection when build() is called. |
|
JImmutableArrayList.Builder<T> |
add(Indexed<? extends T> source)
Adds all values in the Indexed to the values included in the collection when build() is called. |
|
JImmutableArrayList.Builder<T> |
add(Indexed<? extends T> source,
int offset,
int limit)
Adds all values in the specified range of Indexed to the values included in the collection when build() is called. |
|
JImmutableArrayList.Builder<T> |
add(Iterator<? extends T> source)
Adds all values in the Iterator to the values included in the collection when build() is called. |
|
|
add(K... source)
Adds all values in the array to the values included in the collection when build() is called. |
|
JImmutableArrayList.Builder<T> |
add(T value)
Adds the specified value to the values included in the collection when build() is called. |
|
JImmutableArrayList<T> |
build()
Builds and returns a collection containing all of the added values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JImmutableArrayList.Builder()
Method Detail |
---|
@Nonnull public JImmutableArrayList.Builder<T> add(T value)
MutableBuilder
add
in interface MutableBuilder<T,JImmutableList<T>>
@Nonnull public JImmutableArrayList<T> build()
MutableBuilder
build
in interface MutableBuilder<T,JImmutableList<T>>
@Nonnull public JImmutableArrayList.Builder<T> add(Cursor<? extends T> source)
MutableBuilder
add
in interface MutableBuilder<T,JImmutableList<T>>
source
- Cursor containing values to add
@Nonnull public JImmutableArrayList.Builder<T> add(Iterator<? extends T> source)
MutableBuilder
add
in interface MutableBuilder<T,JImmutableList<T>>
source
- Iterator containing values to add
@Nonnull public JImmutableArrayList.Builder<T> add(Collection<? extends T> source)
MutableBuilder
add
in interface MutableBuilder<T,JImmutableList<T>>
source
- Collection containing values to add
@Nonnull public <K extends T> JImmutableArrayList.Builder<T> add(K... source)
MutableBuilder
add
in interface MutableBuilder<T,JImmutableList<T>>
source
- array containing values to add
@Nonnull public JImmutableArrayList.Builder<T> add(Indexed<? extends T> source)
MutableBuilder
add
in interface MutableBuilder<T,JImmutableList<T>>
source
- Indexed containing values to add
@Nonnull public JImmutableArrayList.Builder<T> add(Indexed<? extends T> source, int offset, int limit)
MutableBuilder
add
in interface MutableBuilder<T,JImmutableList<T>>
source
- Indexed containing values to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |