Uses of Class
com.google.common.collect.ImmutableSet
Package
Description
Collection interfaces and implementations, and other utilities for collections.
An API for representing graph (node and edge) data.
Utilities for reflection.
-
Uses of ImmutableSet in com.google.common.collect
Modifier and TypeClassDescriptionclass
ContiguousSet<C extends Comparable>
A sorted set of contiguous values in a givenDiscreteDomain
.class
ANavigableSet
whose contents will never change, with many other important properties detailed atImmutableCollection
.Modifier and TypeMethodDescriptionImmutableRangeSet.asDescendingSetOfRanges()
ImmutableRangeSet.asRanges()
ImmutableSet.Builder.build()
ImmutableTable.cellSet()
ArrayTable.columnKeySet()
Returns an immutable set of the valid column keys, including those that are associated with null values only.ImmutableTable.columnKeySet()
static <E> ImmutableSet
<E> ImmutableSet.copyOf
(E[] elements) Returns an immutable set containing each ofelements
, minus duplicates, in the order each appears first in the source array.static <E> ImmutableSet
<E> Returns an immutable set containing each ofelements
, minus duplicates, in the order each appears first in the source iterable.static <E> ImmutableSet
<E> ImmutableSet.copyOf
(Collection<? extends E> elements) Returns an immutable set containing each ofelements
, minus duplicates, in the order each appears first in the source collection.static <E> ImmutableSet
<E> Returns an immutable set containing each ofelements
, minus duplicates, in the order each appears first in the source iterator.abstract ImmutableSet
<E> ImmutableMultiset.elementSet()
ImmutableSetMultimap.entries()
Returns an immutable collection of all key-value pairs in the multimap.ImmutableMap.entrySet()
Returns an immutable set of the mappings in this map.ImmutableMultiset.entrySet()
ImmutableSortedMap.entrySet()
Returns an immutable set of the mappings in this map, sorted by the key ordering.Returns an immutable set of the values for the given key.Sets.SetView.immutableCopy()
Returns an immutable copy of the current contents of this set view.static <E extends Enum<E>>
ImmutableSet<E> Sets.immutableEnumSet
(E anElement, E... otherElements) Returns an immutable set instance containing the given enum elements.static <E extends Enum<E>>
ImmutableSet<E> Sets.immutableEnumSet
(Iterable<E> elements) Returns an immutable set instance containing the given enum elements.ImmutableMap.keySet()
Returns an immutable set of the keys in this map, in the same order that they appear inImmutableMap.entrySet
.ImmutableMultimap.keySet()
Returns an immutable set of the distinct keys in this multimap, in the same order as they appear in this multimap.static <E> ImmutableSet
<E> ImmutableSet.of()
Returns the empty immutable set.static <E> ImmutableSet
<E> ImmutableSet.of
(E e1) Returns an immutable set containing the given element.static <E> ImmutableSet
<E> ImmutableSet.of
(E e1, E e2) Returns an immutable set containing the given elements, minus duplicates, in the order each was first specified.static <E> ImmutableSet
<E> ImmutableSet.of
(E e1, E e2, E e3) Returns an immutable set containing the given elements, minus duplicates, in the order each was first specified.static <E> ImmutableSet
<E> ImmutableSet.of
(E e1, E e2, E e3, E e4) Returns an immutable set containing the given elements, minus duplicates, in the order each was first specified.static <E> ImmutableSet
<E> ImmutableSet.of
(E e1, E e2, E e3, E e4, E e5) Returns an immutable set containing the given elements, minus duplicates, in the order each was first specified.static <E> ImmutableSet
<E> ImmutableSet.of
(E e1, E e2, E e3, E e4, E e5, E e6, E... others) Returns an immutable set containing the given elements, minus duplicates, in the order each was first specified.final ImmutableSet
<V> Deprecated.Unsupported operation.final ImmutableSet
<V> ImmutableSetMultimap.replaceValues
(K key, Iterable<? extends V> values) Deprecated.Unsupported operation.ArrayTable.rowKeySet()
Returns an immutable set of the valid row keys, including those that are associated with null values only.ImmutableTable.rowKeySet()
final ImmutableSet
<@NonNull E> FluentIterable.toSet()
Returns anImmutableSet
containing all of the elements from this fluent iterable with duplicates removed.ImmutableBiMap.values()
Returns an immutable set of the values in this map, in the same order they appear inImmutableMap.entrySet
.Modifier and TypeMethodDescriptionstatic <E extends Enum<E>>
Collector<E, ?, ImmutableSet<E>> Sets.toImmutableEnumSet()
Returns aCollector
that accumulates the input elements into a newImmutableSet
with an implementation specialized for enums.static <E> Collector
<E, ?, ImmutableSet<E>> ImmutableSet.toImmutableSet()
Returns aCollector
that accumulates the input elements into a newImmutableSet
.static <E> Collector
<E, ?, ImmutableSet<E>> ImmutableSortedSet.toImmutableSet()
-
Uses of ImmutableSet in com.google.common.graph
Modifier and TypeMethodDescriptionstatic <N> ImmutableSet
<N> Graphs.reachableNodes
(Graph<N> graph, N node) Returns the set of nodes that are reachable fromnode
. -
Uses of ImmutableSet in com.google.common.reflect
Modifier and TypeMethodDescriptionClassPath.getAllClasses()
Returns all classes loadable from the current class path.ClassPath.getResources()
Returns all resources loadable from the current class path, including the class files of all loadable classes but excluding the "META-INF/MANIFEST.MF" file.ClassPath.getTopLevelClasses()
Returns all top level classes loadable from the current class path.ClassPath.getTopLevelClasses
(String packageName) Returns all top level classes whose package name ispackageName
.ClassPath.getTopLevelClassesRecursive
(String packageName) Returns all top level classes whose package name ispackageName
or starts withpackageName
followed by a '.'.