|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableBuilder<T,C>
Interface for mutable objects used to produce collections by adding objects to the builder and then calling a build() method. MutableBuilders are required to support unlimited calls to build().
Method Summary | ||
---|---|---|
MutableBuilder<T,C> |
add(Collection<? extends T> source)
Adds all values in the Collection to the values included in the collection when build() is called. |
|
MutableBuilder<T,C> |
add(Cursor<? extends T> source)
Adds all values in the Cursor to the values included in the collection when build() is called. |
|
MutableBuilder<T,C> |
add(Indexed<? extends T> source)
Adds all values in the Indexed to the values included in the collection when build() is called. |
|
MutableBuilder<T,C> |
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. |
|
MutableBuilder<T,C> |
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. |
|
MutableBuilder<T,C> |
add(T value)
Adds the specified value to the values included in the collection when build() is called. |
|
C |
build()
Builds and returns a collection containing all of the added values. |
Method Detail |
---|
@Nonnull MutableBuilder<T,C> add(T value)
value
-
@Nonnull C build()
@Nonnull MutableBuilder<T,C> add(Cursor<? extends T> source)
source
- Cursor containing values to add
@Nonnull MutableBuilder<T,C> add(Iterator<? extends T> source)
source
- Iterator containing values to add
@Nonnull MutableBuilder<T,C> add(Collection<? extends T> source)
source
- Collection containing values to add
@Nonnull <K extends T> MutableBuilder<T,C> add(K... source)
source
- array containing values to add
@Nonnull MutableBuilder<T,C> add(Indexed<? extends T> source, int offset, int limit)
source
- Indexed containing values to add
@Nonnull MutableBuilder<T,C> add(Indexed<? extends T> source)
source
- Indexed containing values to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |