Uses of Class
com.google.common.collect.ImmutableSet
-
Packages that use ImmutableSet Package Description com.google.common.collect This package contains generic collection interfaces and implementations, and other utilities for working with collections.com.google.common.collect.testing com.google.common.collect.testing.google com.google.common.eventbus The EventBus allows publish-subscribe-style communication between components without requiring the components to explicitly register with one another (and thus be aware of each other).com.google.common.graph An API for representing graph (node and edge) data.com.google.common.io This package contains utility methods and classes for working with Java I/O; for example input streams, output streams, readers, writers, and files.com.google.common.reflect This package contains utilities to work with Java reflection.com.google.common.testing This package contains testing utilities.com.google.common.util.concurrent Concurrency utilities. -
-
Uses of ImmutableSet in com.google.common.collect
Subclasses of ImmutableSet in com.google.common.collect Modifier and Type Class Description class
ContiguousSet<C extends java.lang.Comparable>
A sorted set of contiguous values in a givenDiscreteDomain
.(package private) class
DescendingImmutableSortedSet<E>
Skeletal implementation ofImmutableSortedSet.descendingSet()
.(package private) class
EmptyContiguousSet<C extends java.lang.Comparable>
An empty contiguous set.(package private) class
ImmutableEnumSet<E extends java.lang.Enum<E>>
Implementation ofImmutableSet
backed by a non-emptyEnumSet
.(package private) class
ImmutableMapEntrySet<K,V>
entrySet()
implementation forImmutableMap
.(package private) static class
ImmutableMapEntrySet.RegularEntrySet<K,V>
(package private) class
ImmutableMapKeySet<K,V>
keySet()
implementation forImmutableMap
.(package private) static class
ImmutableMultiset.ElementSet<E>
private class
ImmutableMultiset.EntrySet
private class
ImmutableRangeSet.AsSet
(package private) static class
ImmutableSet.CachingAsList<E>
(package private) static class
ImmutableSet.Indexed<E>
private static class
ImmutableSetMultimap.EntrySet<K,V>
class
ImmutableSortedSet<E>
ANavigableSet
whose contents will never change, with many other important properties detailed atImmutableCollection
.(package private) class
ImmutableSortedSetFauxverideShim<E>
"Overrides" theImmutableSet
static methods that lackImmutableSortedSet
equivalents with deprecated, exception-throwing versions.(package private) class
IndexedImmutableSet<E>
(package private) class
JdkBackedImmutableSet<E>
ImmutableSet implementation backed by a JDK HashSet, used to defend against apparent hash flooding.(package private) class
RegularContiguousSet<C extends java.lang.Comparable>
An implementation ofContiguousSet
that contains one or more elements.(package private) class
RegularImmutableBiMap.Inverse.InverseEntrySet
private static class
RegularImmutableMap.KeySet<K>
(package private) class
RegularImmutableSet<E>
Implementation ofImmutableSet
with two or more elements.(package private) class
RegularImmutableSortedSet<E>
An immutable sorted set with one or more elements.private class
RegularImmutableTable.CellSet
(package private) class
SingletonImmutableSet<E>
Implementation ofImmutableSet
with exactly one element.Fields in com.google.common.collect declared as ImmutableSet Modifier and Type Field Description private ImmutableSet<E>
JdkBackedImmutableMultiset. elementSet
private ImmutableSet<E>
RegularImmutableMultiset. elementSet
private ImmutableSet<V>
ImmutableSetMultimap. emptySet
Returned by get() when a missing key is provided.private ImmutableSet<java.util.Map.Entry<K,V>>
ImmutableSetMultimap. entries
private ImmutableSet<java.util.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 ImmutableSet Modifier and Type Field Description private ImmutableList<ImmutableSet<E>>
Sets.CartesianSet. axes
(package private) static java.util.stream.Collector<java.lang.Enum<?>,?,ImmutableSet<? extends java.lang.Enum<?>>>
CollectCollectors.EnumSetAccumulator. TO_IMMUTABLE_ENUM_SET
private static java.util.stream.Collector<java.lang.Object,?,ImmutableSet<java.lang.Object>>
CollectCollectors. TO_IMMUTABLE_SET
Methods in com.google.common.collect that return ImmutableSet Modifier and Type Method Description ImmutableSet<Range<C>>
ImmutableRangeSet. asDescendingSetOfRanges()
(package private) static ImmutableSet
ImmutableEnumSet. asImmutable(java.util.EnumSet set)
ImmutableSet<Range<C>>
ImmutableRangeSet. asRanges()
ImmutableSet<E>
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()
ImmutableSet<Table.Cell<R,C,V>>
ImmutableTable. cellSet()
ImmutableSet<C>
ArrayTable. columnKeySet()
Returns an immutable set of the valid column keys, including those that are associated with null values only.ImmutableSet<C>
ImmutableTable. columnKeySet()
private static <E> ImmutableSet<E>
ImmutableSet. construct(int n, int expectedSize, java.lang.Object... elements)
Constructs anImmutableSet
from the firstn
elements of the specified array.private static <E> ImmutableSet<E>
ImmutableSet. constructUnknownDuplication(int n, java.lang.Object... elements)
Constructs anImmutableSet
from the firstn
elements of the specified array, which we have no particular reason to believe does or does not contain duplicates.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>
ImmutableSet. copyOf(java.lang.Iterable<? extends E> elements)
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(java.util.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>
ImmutableSet. copyOf(java.util.Iterator<? extends E> elements)
Returns an immutable set containing each ofelements
, minus duplicates, in the order each appears first in the source iterator.private static ImmutableSet
ImmutableSet. copyOfEnumSet(java.util.EnumSet enumSet)
(package private) abstract ImmutableSet<Table.Cell<R,C,V>>
ImmutableTable. createCellSet()
(package private) ImmutableSet<Table.Cell<R,C,V>>
RegularImmutableTable. createCellSet()
(package private) ImmutableSet<Table.Cell<R,C,V>>
SingletonImmutableTable. createCellSet()
(package private) abstract ImmutableSet<java.util.Map.Entry<K,V>>
ImmutableMap. createEntrySet()
(package private) ImmutableSet<java.util.Map.Entry<K,V>>
ImmutableMap.IteratorBasedImmutableMap. createEntrySet()
private ImmutableSet<Multiset.Entry<E>>
ImmutableMultiset. createEntrySet()
(package private) ImmutableSet<java.util.Map.Entry<K,V>>
ImmutableSortedMap. createEntrySet()
(package private) ImmutableSet<java.util.Map.Entry<K,V>>
JdkBackedImmutableBiMap. createEntrySet()
(package private) ImmutableSet<java.util.Map.Entry<K,V>>
JdkBackedImmutableMap. createEntrySet()
(package private) ImmutableSet<java.util.Map.Entry<K,V>>
RegularImmutableBiMap. createEntrySet()
(package private) ImmutableSet<java.util.Map.Entry<V,K>>
RegularImmutableBiMap.Inverse. createEntrySet()
(package private) ImmutableSet<java.util.Map.Entry<K,V>>
RegularImmutableMap. createEntrySet()
(package private) ImmutableSet<java.util.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) ImmutableSet<V>
ImmutableBiMap. createValues()
ImmutableSet<K>
ImmutableMultimap.Keys. elementSet()
abstract ImmutableSet<E>
ImmutableMultiset. elementSet()
ImmutableSet<E>
JdkBackedImmutableMultiset. elementSet()
ImmutableSet<E>
RegularImmutableMultiset. elementSet()
private static <V> ImmutableSet<V>
ImmutableSetMultimap. emptySet(java.util.Comparator<? super V> valueComparator)
ImmutableSet<java.util.Map.Entry<K,V>>
ImmutableSetMultimap. entries()
Returns an immutable collection of all key-value pairs in the multimap.ImmutableSet<java.util.Map.Entry<K,V>>
ImmutableMap. entrySet()
Returns an immutable set of the mappings in this map.ImmutableSet<Multiset.Entry<E>>
ImmutableMultiset. entrySet()
ImmutableSet<java.util.Map.Entry<K,V>>
ImmutableSortedMap. entrySet()
Returns an immutable set of the mappings in this map, sorted by the key ordering.ImmutableSet<V>
ImmutableMap.MapViewOfValuesAsSingletonSets. get(java.lang.Object key)
ImmutableSet<V>
ImmutableSetMultimap. get(K key)
Returns an immutable set of the values for the given key.ImmutableSet<E>
Sets.SetView. immutableCopy()
Returns an immutable copy of the current contents of this set view.static <E extends java.lang.Enum<E>>
ImmutableSet<E>Sets. immutableEnumSet(E anElement, E... otherElements)
Returns an immutable set instance containing the given enum elements.static <E extends java.lang.Enum<E>>
ImmutableSet<E>Sets. immutableEnumSet(java.lang.Iterable<E> elements)
Returns an immutable set instance containing the given enum elements.ImmutableSet<K>
ImmutableMap. keySet()
Returns an immutable set of the keys in this map, in the same order that they appear inImmutableMap.entrySet
.ImmutableSet<K>
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 element)
Returns an immutable set containingelement
.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.ImmutableSet<V>
ImmutableSetMultimap. removeAll(java.lang.Object key)
Deprecated.Unsupported operation.ImmutableSet<V>
ImmutableSetMultimap. replaceValues(K key, java.lang.Iterable<? extends V> values)
Deprecated.Unsupported operation.ImmutableSet<R>
ArrayTable. rowKeySet()
Returns an immutable set of the valid row keys, including those that are associated with null values only.ImmutableSet<R>
ImmutableTable. rowKeySet()
(package private) ImmutableSet<E>
CollectCollectors.EnumSetAccumulator. toImmutableSet()
ImmutableSet<E>
FluentIterable. toSet()
Returns anImmutableSet
containing all of the elements from this fluent iterable with duplicates removed.ImmutableSet<V>
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(java.util.Comparator<? super V> valueComparator, java.util.Collection<? extends V> values)
Methods in com.google.common.collect that return types with arguments of type ImmutableSet Modifier and Type Method Description (package private) UnmodifiableIterator<java.util.Map.Entry<K,ImmutableSet<V>>>
ImmutableMap.MapViewOfValuesAsSingletonSets. entryIterator()
(package private) static <E extends java.lang.Enum<E>>
java.util.stream.Collector<E,?,ImmutableSet<E>>CollectCollectors. toImmutableEnumSet()
static <E extends java.lang.Enum<E>>
java.util.stream.Collector<E,?,ImmutableSet<E>>Sets. toImmutableEnumSet()
Returns aCollector
that accumulates the input elements into a newImmutableSet
with an implementation specialized for enums.(package private) static <E> java.util.stream.Collector<E,?,ImmutableSet<E>>
CollectCollectors. toImmutableSet()
static <E> java.util.stream.Collector<E,?,ImmutableSet<E>>
ImmutableSet. toImmutableSet()
Returns aCollector
that accumulates the input elements into a newImmutableSet
.static <E> java.util.stream.Collector<E,?,ImmutableSet<E>>
ImmutableSortedSetFauxverideShim. toImmutableSet()
Methods in com.google.common.collect with parameters of type ImmutableSet Modifier and Type Method Description (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 ImmutableSet Constructor Description DenseImmutableTable(ImmutableList<Table.Cell<R,C,V>> cellList, ImmutableSet<R> rowSpace, ImmutableSet<C> columnSpace)
RegularImmutableMultiset(Multisets.ImmutableEntry<E>[] entries, Multisets.ImmutableEntry<?>[] hashTable, int size, int hashCode, ImmutableSet<E> elementSet)
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 ImmutableSet Constructor Description CartesianSet(ImmutableList<ImmutableSet<E>> axes, CartesianList<E> delegate)
ImmutableSetMultimap(ImmutableMap<K,ImmutableSet<V>> map, int size, java.util.Comparator<? super V> valueComparator)
-
Uses of ImmutableSet in com.google.common.collect.testing
Fields in com.google.common.collect.testing declared as ImmutableSet Modifier and Type Field Description private ImmutableSet<java.util.function.Supplier<SpliteratorTester.GeneralSpliterator<E>>>
SpliteratorTester. spliteratorSuppliers
Constructors in com.google.common.collect.testing with parameters of type ImmutableSet Constructor Description SpliteratorTester(ImmutableSet<java.util.function.Supplier<SpliteratorTester.GeneralSpliterator<E>>> spliteratorSuppliers)
-
Uses of ImmutableSet in com.google.common.collect.testing.google
Methods in com.google.common.collect.testing.google that return ImmutableSet Modifier and Type Method Description ImmutableSet<java.lang.Integer>[]
MapGenerators.ImmutableMapValuesAsSingletonSetGenerator. createValueArray(int length)
-
Uses of ImmutableSet in com.google.common.eventbus
Fields in com.google.common.eventbus with type parameters of type ImmutableSet Modifier and Type Field Description private static LoadingCache<java.lang.Class<?>,ImmutableSet<java.lang.Class<?>>>
SubscriberRegistry. flattenHierarchyCache
Global cache of classes to their flattened hierarchy of supertypes.Methods in com.google.common.eventbus that return ImmutableSet Modifier and Type Method Description (package private) static ImmutableSet<java.lang.Class<?>>
SubscriberRegistry. flattenHierarchy(java.lang.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 ImmutableSet Modifier and Type Method Description private ImmutableSet<N>
Traverser. validate(java.lang.Iterable<? extends N> startNodes)
-
Uses of ImmutableSet in com.google.common.io
Fields in com.google.common.io declared as ImmutableSet Modifier and Type Field Description private ImmutableSet<FileWriteMode>
Files.FileByteSink. modes
-
Uses of ImmutableSet in com.google.common.reflect
Fields in com.google.common.reflect declared as ImmutableSet Modifier and Type Field Description private ImmutableSet<TypeToken<? super T>>
TypeToken.ClassSet. classes
private ImmutableSet<TypeToken<? super T>>
TypeToken.InterfaceSet. interfaces
private ImmutableSet<ClassPath.ResourceInfo>
ClassPath. resources
private ImmutableSet<TypeToken<? super T>>
TypeToken.TypeSet. types
Methods in com.google.common.reflect that return ImmutableSet Modifier and Type Method Description ImmutableSet<ClassPath.ClassInfo>
ClassPath. getAllClasses()
Returns all classes loadable from the current class path.(package private) static ImmutableSet<java.io.File>
ClassPath. getClassPathFromManifest(java.io.File jarFile, java.util.jar.Manifest manifest)
Returns the class path URIs specified by theClass-Path
manifest attribute, according to JAR File Specification.private ImmutableSet<java.lang.Class<? super T>>
TypeToken. getRawTypes()
ImmutableSet<ClassPath.ResourceInfo>
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.ImmutableSet<ClassPath.ClassInfo>
ClassPath. getTopLevelClasses()
Returns all top level classes loadable from the current class path.ImmutableSet<ClassPath.ClassInfo>
ClassPath. getTopLevelClasses(java.lang.String packageName)
Returns all top level classes whose package name ispackageName
.ImmutableSet<ClassPath.ClassInfo>
ClassPath. getTopLevelClassesRecursive(java.lang.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(java.lang.ClassLoader classloader)
Returns all locations thatclassloader
and parent loaders load classes and resources from.ImmutableSet<ClassPath.ResourceInfo>
ClassPath.LocationInfo. scanResources()
Scans this location and returns all scanned resources.ImmutableSet<ClassPath.ResourceInfo>
ClassPath.LocationInfo. scanResources(java.util.Set<java.io.File> scannedFiles)
Scans this location and returns all scanned resources.Constructors in com.google.common.reflect with parameters of type ImmutableSet Constructor Description ClassPath(ImmutableSet<ClassPath.ResourceInfo> resources)
-
Uses of ImmutableSet in com.google.common.testing
Fields in com.google.common.testing declared as ImmutableSet Modifier and Type Field Description private static ImmutableSet<java.lang.String>
NullPointerTester. NULLABLE_ANNOTATION_SIMPLE_NAMES
Methods in com.google.common.testing that return ImmutableSet Modifier and Type Method Description (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 ImmutableSet Modifier and Type Field Description (package private) static ImmutableSet<java.lang.String>
CycleDetectingLockFactory.ExampleStackTrace. EXCLUDED_CLASS_NAMES
-