public static class NullAllowingImmutableSet.Builder<E> extends Object
| Constructor and Description |
|---|
Builder(int expectedSize) |
| Modifier and Type | Method and Description |
|---|---|
NullAllowingImmutableSet.Builder<E> |
add(E newElement)
Duplicate elements are not allowed, and will cause
build() to fail. |
NullAllowingImmutableSet.Builder<E> |
addAll(Iterable<? extends E> newElements) |
NullAllowingImmutableSet<E> |
build() |
public NullAllowingImmutableSet.Builder<E> add(E newElement)
build() to fail.public NullAllowingImmutableSet.Builder<E> addAll(Iterable<? extends E> newElements)
public NullAllowingImmutableSet<E> build()
Copyright © 2017–2020. All rights reserved.