private static final class ImmutableSet.EmptySetBuilderImpl<E> extends ImmutableSet.SetBuilderImpl<E>
Modifier and Type | Field and Description |
---|---|
private static ImmutableSet.EmptySetBuilderImpl<java.lang.Object> |
INSTANCE |
dedupedElements, distinct
Modifier | Constructor and Description |
---|---|
private |
EmptySetBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
(package private) ImmutableSet.SetBuilderImpl<E> |
add(E e)
Adds e to this SetBuilderImpl, returning the updated result.
|
(package private) ImmutableSet<E> |
build() |
(package private) ImmutableSet.SetBuilderImpl<E> |
copy()
Creates a new copy of this SetBuilderImpl.
|
(package private) static <E> ImmutableSet.SetBuilderImpl<E> |
instance() |
addDedupedElement, combine, review
private static final ImmutableSet.EmptySetBuilderImpl<java.lang.Object> INSTANCE
static <E> ImmutableSet.SetBuilderImpl<E> instance()
ImmutableSet.SetBuilderImpl<E> add(E e)
ImmutableSet.SetBuilderImpl
add
in class ImmutableSet.SetBuilderImpl<E>
ImmutableSet.SetBuilderImpl<E> copy()
ImmutableSet.SetBuilderImpl
copy
in class ImmutableSet.SetBuilderImpl<E>
ImmutableSet<E> build()
build
in class ImmutableSet.SetBuilderImpl<E>