com.github.andrewoma.dexx.collection
Interface Builder<E,R>
- All Known Implementing Classes:
- AbstractBuilder, AbstractSelfBuilder
public interface Builder<E,R>
Builders provide efficient implementations for incrementally building persistent collections.
It should be assumed that Builders are NOT thread safe. Furthermore, it is invalid to call
build() more than once.
add
@NotNull
Builder<E,R> add(E element)
addAll
@NotNull
Builder<E,R> addAll(@NotNull
Traversable<E> elements)
addAll
@NotNull
Builder<E,R> addAll(@NotNull
Iterable<E> elements)
addAll
@NotNull
Builder<E,R> addAll(@NotNull
Iterator<E> iterator)
addAll
@NotNull
Builder<E,R> addAll(E e1,
E e2,
E... es)
build
@NotNull
R build()
Copyright © 2014. All Rights Reserved.