Uses of Class
com.google.common.collect.ImmutableSet
Packages that use ImmutableSet
Package
Description
Collection interfaces and implementations, and other utilities for collections.
Discouraged in favor of dependency injection and
concurrency frameworks, EventBus allows publish-subscribe-style communication.
An API for representing graph (node and edge) data.
Utility methods and classes for I/O; for example input streams, output streams, readers, writers,
and files.
Utilities for reflection.
Testing utilities.
Concurrency utilities.
-
Uses of ImmutableSet in com.google.common.collect
Subclasses of ImmutableSet in com.google.common.collectModifier and TypeClassDescriptionclass
ContiguousSet<C extends Comparable>
A sorted set of contiguous values in a givenDiscreteDomain
.(package private) final class
Skeletal implementation ofImmutableSortedSet.descendingSet()
.(package private) final class
EmptyContiguousSet<C extends Comparable>
An empty contiguous set.(package private) final class
ImmutableEnumSet<E extends Enum<E>>
Implementation ofImmutableSet
backed by a non-emptyEnumSet
.(package private) class
ImmutableMapEntrySet<K,
V> entrySet()
implementation forImmutableMap
.(package private) static final class
(package private) final class
ImmutableMapKeySet<K,
V> keySet()
implementation forImmutableMap
.(package private) static final class
private final class
private final class
(package private) static class
(package private) static class
private static final class
class
ANavigableSet
whose contents will never change, with many other important properties detailed atImmutableCollection
.(package private) class
(package private) final class
ImmutableSet implementation backed by a JDK HashSet, used to defend against apparent hash flooding.(package private) final class
RegularContiguousSet<C extends Comparable>
An implementation ofContiguousSet
that contains one or more elements.(package private) final class
private static final class
(package private) final class
Implementation ofImmutableSet
with two or more elements.(package private) final class
An immutable sorted set with one or more elements.private final class
(package private) final class
Implementation ofImmutableSet
with exactly one element.Fields in com.google.common.collect declared as ImmutableSetModifier and TypeFieldDescriptionprivate ImmutableSet
<E> JdkBackedImmutableMultiset.elementSet
private ImmutableSet
<E> RegularImmutableMultiset.elementSet
private final ImmutableSet
<V> ImmutableSetMultimap.emptySet
Returned by get() when a missing key is provided.private ImmutableSet
<Map.Entry<K, V>> ImmutableSetMultimap.entries
private ImmutableSet
<Map.Entry<K, V>> ImmutableMap.entrySet
private ImmutableSet
<Multiset.Entry<E>> ImmutableMultiset.entrySet
private ImmutableSet
<K> ImmutableMap.keySet
Fields in com.google.common.collect with type parameters of type ImmutableSetModifier and TypeFieldDescriptionprivate final ImmutableList
<ImmutableSet<E>> Sets.CartesianSet.axes
(package private) static final Collector
<Enum<?>, ?, ImmutableSet<? extends Enum<?>>> CollectCollectors.EnumSetAccumulator.TO_IMMUTABLE_ENUM_SET
private static final Collector
<Object, ?, ImmutableSet<Object>> CollectCollectors.TO_IMMUTABLE_SET
Methods in com.google.common.collect that return ImmutableSetModifier and TypeMethodDescriptionImmutableRangeSet.asDescendingSetOfRanges()
(package private) static <E extends Enum<E>>
ImmutableSet<E> ImmutableEnumSet.asImmutable
(EnumSet<E> set) ImmutableRangeSet.asRanges()
ImmutableSet.Builder.build()
(package private) ImmutableSet
<E> ImmutableSet.EmptySetBuilderImpl.build()
(package private) ImmutableSet
<E> ImmutableSet.JdkBackedSetBuilderImpl.build()
(package private) ImmutableSet
<E> ImmutableSet.RegularSetBuilderImpl.build()
(package private) abstract ImmutableSet
<E> ImmutableSet.SetBuilderImpl.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.private static ImmutableSet
ImmutableSet.copyOfEnumSet
(EnumSet<?> enumSet) (package private) abstract ImmutableSet
<Table.Cell<R, C, V>> ImmutableTable.createCellSet()
(package private) final ImmutableSet
<Table.Cell<R, C, V>> RegularImmutableTable.createCellSet()
(package private) ImmutableSet
<Table.Cell<R, C, V>> SingletonImmutableTable.createCellSet()
(package private) abstract ImmutableSet
<Map.Entry<K, V>> ImmutableMap.createEntrySet()
(package private) ImmutableSet
<Map.Entry<K, V>> ImmutableMap.IteratorBasedImmutableMap.createEntrySet()
private ImmutableSet
<Multiset.Entry<E>> ImmutableMultiset.createEntrySet()
(package private) ImmutableSet
<Map.Entry<K, V>> ImmutableSortedMap.createEntrySet()
(package private) ImmutableSet
<Map.Entry<K, V>> JdkBackedImmutableBiMap.createEntrySet()
(package private) ImmutableSet
<Map.Entry<K, V>> JdkBackedImmutableMap.createEntrySet()
(package private) ImmutableSet
<Map.Entry<K, V>> RegularImmutableBiMap.createEntrySet()
(package private) ImmutableSet
<Map.Entry<V, K>> RegularImmutableBiMap.Inverse.createEntrySet()
(package private) ImmutableSet
<Map.Entry<K, V>> RegularImmutableMap.createEntrySet()
(package private) ImmutableSet
<Map.Entry<K, V>> SingletonImmutableBiMap.createEntrySet()
(package private) ImmutableSet
<K> DenseImmutableTable.ImmutableArrayMap.createKeySet()
(package private) abstract ImmutableSet
<K> ImmutableMap.createKeySet()
(package private) ImmutableSet
<K> ImmutableMap.IteratorBasedImmutableMap.createKeySet()
(package private) ImmutableSet
<K> ImmutableMap.MapViewOfValuesAsSingletonSets.createKeySet()
(package private) ImmutableSet
<K> ImmutableSortedMap.createKeySet()
(package private) ImmutableSet
<K> JdkBackedImmutableBiMap.createKeySet()
(package private) ImmutableSet
<K> JdkBackedImmutableMap.createKeySet()
(package private) ImmutableSet
<K> RegularImmutableBiMap.createKeySet()
(package private) ImmutableSet
<V> RegularImmutableBiMap.Inverse.createKeySet()
(package private) ImmutableSet
<K> RegularImmutableMap.createKeySet()
(package private) ImmutableSet
<K> SingletonImmutableBiMap.createKeySet()
(package private) final ImmutableSet
<V> ImmutableBiMap.createValues()
ImmutableMultimap.Keys.elementSet()
abstract ImmutableSet
<E> ImmutableMultiset.elementSet()
JdkBackedImmutableMultiset.elementSet()
RegularImmutableMultiset.elementSet()
private static <V> ImmutableSet
<V> ImmutableSetMultimap.emptySet
(Comparator<? super V> valueComparator) 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.private static <E> ImmutableSet
<E> ImmutableSet.fromArrayWithExpectedSize
(E[] elements, int expectedSize) 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()
(package private) ImmutableSet
<E> CollectCollectors.EnumSetAccumulator.toImmutableSet()
final ImmutableSet
<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
.private static <V> ImmutableSet
<V> ImmutableSetMultimap.valueSet
(Comparator<? super V> valueComparator, Collection<? extends V> values) Methods in com.google.common.collect that return types with arguments of type ImmutableSetModifier and TypeMethodDescription(package private) UnmodifiableIterator
<Map.Entry<K, ImmutableSet<V>>> ImmutableMap.MapViewOfValuesAsSingletonSets.entryIterator()
(package private) static <E extends Enum<E>>
Collector<E, ?, ImmutableSet<E>> CollectCollectors.toImmutableEnumSet()
static <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.private static <E extends Enum<E>>
Collector<E, CollectCollectors.EnumSetAccumulator<E>, ImmutableSet<E>> CollectCollectors.toImmutableEnumSetGeneric()
(package private) static <E> Collector
<E, ?, ImmutableSet<E>> CollectCollectors.toImmutableSet()
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()
Methods in com.google.common.collect with parameters of type ImmutableSetModifier and TypeMethodDescription(package private) static <R,
C, V> RegularImmutableTable <R, C, V> RegularImmutableTable.forOrderedComponents
(ImmutableList<Table.Cell<R, C, V>> cellList, ImmutableSet<R> rowSpace, ImmutableSet<C> columnSpace) A factory that chooses the most space-efficient representation of the table.Constructors in com.google.common.collect with parameters of type ImmutableSetModifierConstructorDescription(package private)
DenseImmutableTable
(ImmutableList<Table.Cell<R, C, V>> cellList, ImmutableSet<R> rowSpace, ImmutableSet<C> columnSpace) private
RegularImmutableMultiset
(Multisets.ImmutableEntry<E>[] entries, Multisets.ImmutableEntry<?>[] hashTable, int size, int hashCode, ImmutableSet<E> elementSet) (package private)
SparseImmutableTable
(ImmutableList<Table.Cell<R, C, V>> cellList, ImmutableSet<R> rowSpace, ImmutableSet<C> columnSpace) Constructor parameters in com.google.common.collect with type arguments of type ImmutableSetModifierConstructorDescriptionprivate
CartesianSet
(ImmutableList<ImmutableSet<E>> axes, CartesianList<E> delegate) (package private)
ImmutableSetMultimap
(ImmutableMap<K, ImmutableSet<V>> map, int size, Comparator<? super V> valueComparator) -
Uses of ImmutableSet in com.google.common.collect.testing
Fields in com.google.common.collect.testing declared as ImmutableSetModifier and TypeFieldDescriptionprivate final ImmutableSet
<Supplier<SpliteratorTester.GeneralSpliterator<E>>> SpliteratorTester.spliteratorSuppliers
Constructors in com.google.common.collect.testing with parameters of type ImmutableSetModifierConstructorDescriptionprivate
SpliteratorTester
(ImmutableSet<Supplier<SpliteratorTester.GeneralSpliterator<E>>> spliteratorSuppliers) -
Uses of ImmutableSet in com.google.common.eventbus
Fields in com.google.common.eventbus with type parameters of type ImmutableSetModifier and TypeFieldDescriptionprivate static final LoadingCache
<Class<?>, ImmutableSet<Class<?>>> SubscriberRegistry.flattenHierarchyCache
Global cache of classes to their flattened hierarchy of supertypes.Methods in com.google.common.eventbus that return ImmutableSetModifier and TypeMethodDescription(package private) static ImmutableSet
<Class<?>> SubscriberRegistry.flattenHierarchy
(Class<?> concreteClass) Flattens a class's type hierarchy into a set ofClass
objects including all superclasses (transitively) and all interfaces implemented by these superclasses. -
Uses of ImmutableSet in com.google.common.graph
Methods in com.google.common.graph that return ImmutableSetModifier and TypeMethodDescriptionstatic <N> ImmutableSet
<N> Graphs.reachableNodes
(Graph<N> graph, N node) Returns the set of nodes that are reachable fromnode
.private ImmutableSet
<N> -
Uses of ImmutableSet in com.google.common.io
Fields in com.google.common.io declared as ImmutableSetModifier and TypeFieldDescriptionprivate final ImmutableSet
<FileWriteMode> Files.FileByteSink.modes
-
Uses of ImmutableSet in com.google.common.reflect
Fields in com.google.common.reflect declared as ImmutableSetModifier and TypeFieldDescriptionprivate ImmutableSet
<TypeToken<? super T>> TypeToken.ClassSet.classes
private ImmutableSet
<TypeToken<? super T>> TypeToken.InterfaceSet.interfaces
private final ImmutableSet
<ClassPath.ResourceInfo> ClassPath.resources
private ImmutableSet
<TypeToken<? super T>> TypeToken.TypeSet.types
Methods in com.google.common.reflect that return ImmutableSetModifier and TypeMethodDescriptionClassPath.getAllClasses()
Returns all classes loadable from the current class path.(package private) static ImmutableSet
<File> ClassPath.getClassPathFromManifest
(File jarFile, Manifest manifest) Returns the class path URIs specified by theClass-Path
manifest attribute, according to JAR File Specification.private ImmutableSet
<Class<? super T>> TypeToken.getRawTypes()
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 '.'.(package private) static ImmutableSet
<ClassPath.LocationInfo> ClassPath.locationsFrom
(ClassLoader classloader) Returns all locations thatclassloader
and parent loaders load classes and resources from.ClassPath.LocationInfo.scanResources()
Scans this location and returns all scanned resources.ClassPath.LocationInfo.scanResources
(Set<File> scannedFiles) Scans this location and returns all scanned resources.Constructors in com.google.common.reflect with parameters of type ImmutableSet -
Uses of ImmutableSet in com.google.common.testing
Fields in com.google.common.testing declared as ImmutableSetModifier and TypeFieldDescriptionprivate static final ImmutableSet
<String> NullPointerTester.NULLABLE_ANNOTATION_SIMPLE_NAMES
Methods in com.google.common.testing that return ImmutableSetModifier and TypeMethodDescription(package private) static <E> ImmutableSet
<E> FreshValueGenerator.generateImmutableSet
(E freshElement) -
Uses of ImmutableSet in com.google.common.util.concurrent
Fields in com.google.common.util.concurrent declared as ImmutableSetModifier and TypeFieldDescription(package private) static final ImmutableSet
<String> CycleDetectingLockFactory.ExampleStackTrace.EXCLUDED_CLASS_NAMES