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 |
---|---|
(package private) class |
CompactLinkedHashSet<E>
CompactLinkedHashSet is an implementation of a Set, which a predictable iteration order that
matches the insertion order.
|
Modifier and Type | Method and Description |
---|---|
static <E> CompactHashSet<E> |
CompactHashSet.create()
Creates an empty
CompactHashSet instance. |
static <E> CompactHashSet<E> |
CompactHashSet.create(java.util.Collection<? extends E> collection)
Creates a mutable
CompactHashSet instance containing the elements of the given
collection in unspecified order. |
static <E> CompactHashSet<E> |
CompactHashSet.create(E... elements)
Creates a mutable
CompactHashSet instance containing the given elements in
unspecified order. |
static <E> CompactHashSet<E> |
CompactHashSet.createWithExpectedSize(int expectedSize)
Creates a
CompactHashSet instance, with a high enough "initial capacity" that it
should hold expectedSize elements without growth. |