Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Method and Description |
---|---|
static <E> CompactLinkedHashSet<E> |
CompactLinkedHashSet.create()
Creates an empty
CompactLinkedHashSet instance. |
static <E> CompactLinkedHashSet<E> |
CompactLinkedHashSet.create(java.util.Collection<? extends E> collection)
Creates a mutable
CompactLinkedHashSet instance containing the elements
of the given collection in the order returned by the collection's iterator. |
static <E> CompactLinkedHashSet<E> |
CompactLinkedHashSet.create(E... elements)
Creates a
CompactLinkedHashSet instance containing the given elements in
unspecified order. |
static <E> CompactLinkedHashSet<E> |
CompactLinkedHashSet.createWithExpectedSize(int expectedSize)
Creates a
CompactLinkedHashSet instance, with a high enough "initial capacity"
that it should hold expectedSize elements without rebuilding internal
data structures. |