Interface Builder<E,R>
-
- All Known Implementing Classes:
AbstractBuilder,AbstractSelfBuilder,VectorBuilder
public interface Builder<E,R>Buildersprovide 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Builder<E,R>add(E element)@NotNull Builder<E,R>addAll(@NotNull Traversable<E> elements)@NotNull Builder<E,R>addAll(@NotNull java.util.Iterator<E> iterator)@NotNull Builder<E,R>addAll(E e1, E e2, E... es)@NotNull Builder<E,R>addAll(java.lang.Iterable<E> elements)Rbuild()
-