Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Class and Description |
---|---|
private static class |
ImmutableSet.JdkBackedSetBuilderImpl<E>
SetBuilderImpl version that uses a JDK HashSet, which has built in hash flooding protection.
|
private static class |
ImmutableSet.RegularSetBuilderImpl<E>
Default implementation of the guts of ImmutableSet.Builder, creating an open-addressed hash
table and deduplicating elements as they come, so it only allocates O(max(distinct,
expectedCapacity)) rather than O(calls to add).
|
Modifier and Type | Field and Description |
---|---|
private ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.Builder.impl |
Modifier and Type | Method and Description |
---|---|
(package private) abstract ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.SetBuilderImpl.add(E e)
Adds e to this SetBuilderImpl, returning the updated result.
|
(package private) ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.RegularSetBuilderImpl.add(E e) |
(package private) ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.JdkBackedSetBuilderImpl.add(E e) |
(package private) ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.SetBuilderImpl.combine(ImmutableSet.SetBuilderImpl<E> other)
Adds all the elements from the specified SetBuilderImpl to this SetBuilderImpl.
|
(package private) abstract ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.SetBuilderImpl.copy()
Creates a new copy of this SetBuilderImpl.
|
(package private) ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.RegularSetBuilderImpl.copy() |
(package private) ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.JdkBackedSetBuilderImpl.copy() |
(package private) ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.SetBuilderImpl.review()
Call this before build().
|
(package private) ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.RegularSetBuilderImpl.review() |
Modifier and Type | Method and Description |
---|---|
(package private) ImmutableSet.SetBuilderImpl<E> |
ImmutableSet.SetBuilderImpl.combine(ImmutableSet.SetBuilderImpl<E> other)
Adds all the elements from the specified SetBuilderImpl to this SetBuilderImpl.
|
Constructor and Description |
---|
JdkBackedSetBuilderImpl(ImmutableSet.SetBuilderImpl<E> toCopy) |
SetBuilderImpl(ImmutableSet.SetBuilderImpl<E> toCopy)
Initializes this SetBuilderImpl with a copy of the deduped elements array from toCopy.
|