Uses of Class
com.google.common.collect.ImmutableSet
Packages that use ImmutableSet
Package
Description
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
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).
An API for representing graph (node and edge) data.
This package contains utility methods and classes for working with Java I/O; for example input
streams, output streams, readers, writers, and files.
This package contains utilities to work with Java reflection.
This package contains testing utilities.
Concurrency utilities.
-
Uses of ImmutableSet in com.google.common.collect
Subclasses of ImmutableSet in com.google.common.collectModifier and TypeClassDescriptionclassContiguousSet<C extends Comparable>A sorted set of contiguous values in a givenDiscreteDomain.(package private) final classSkeletal implementation ofImmutableSortedSet.descendingSet().(package private) final classEmptyContiguousSet<C extends Comparable>An empty contiguous set.(package private) final classImmutableEnumSet<E extends Enum<E>>Implementation ofImmutableSetbacked by a non-emptyEnumSet.(package private) classImmutableMapEntrySet<K,V> entrySet()implementation forImmutableMap.(package private) static final class(package private) final classImmutableMapKeySet<K,V> keySet()implementation forImmutableMap.(package private) static final classprivate final classprivate final class(package private) static class(package private) static classprivate static final classclassANavigableSetwhose contents will never change, with many other important properties detailed atImmutableCollection.(package private) class"Overrides" theImmutableSetstatic methods that lackImmutableSortedSetequivalents with deprecated, exception-throwing versions.(package private) class(package private) final classImmutableSet implementation backed by a JDK HashSet, used to defend against apparent hash flooding.(package private) final classRegularContiguousSet<C extends Comparable>An implementation ofContiguousSetthat contains one or more elements.(package private) final classprivate static final class(package private) final classImplementation ofImmutableSetwith two or more elements.(package private) final classAn immutable sorted set with one or more elements.private final class(package private) final classImplementation ofImmutableSetwith exactly one element.Fields in com.google.common.collect declared as ImmutableSetModifier and TypeFieldDescriptionprivate ImmutableSet<E>JdkBackedImmutableMultiset.elementSetprivate ImmutableSet<E>RegularImmutableMultiset.elementSetprivate final ImmutableSet<V>ImmutableSetMultimap.emptySetReturned by get() when a missing key is provided.private ImmutableSet<Map.Entry<K,V>> ImmutableSetMultimap.entriesprivate ImmutableSet<Map.Entry<K,V>> ImmutableMap.entrySetprivate ImmutableSet<Multiset.Entry<E>>ImmutableMultiset.entrySetprivate ImmutableSet<K>ImmutableMap.keySetFields 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_SETprivate static final Collector<Object,?, ImmutableSet<Object>> CollectCollectors.TO_IMMUTABLE_SETMethods in com.google.common.collect that return ImmutableSetModifier and TypeMethodDescriptionImmutableRangeSet.asDescendingSetOfRanges()(package private) static ImmutableSetImmutableEnumSet.asImmutable(EnumSet 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()private static <E> ImmutableSet<E>Constructs anImmutableSetfrom the firstnelements of the specified array.private static <E> ImmutableSet<E>ImmutableSet.constructUnknownDuplication(int n, Object... elements) Constructs anImmutableSetfrom the firstnelements 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>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 ImmutableSetImmutableSet.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.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 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.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 anImmutableSetcontaining 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 aCollectorthat accumulates the input elements into a newImmutableSetwith an implementation specialized for enums.(package private) static <E> Collector<E,?, ImmutableSet<E>> CollectCollectors.toImmutableSet()static <E> Collector<E,?, ImmutableSet<E>> ImmutableSet.toImmutableSet()Returns aCollectorthat accumulates the input elements into a newImmutableSet.static <E> Collector<E,?, ImmutableSet<E>> ImmutableSortedSetFauxverideShim.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) privateRegularImmutableMultiset(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 ImmutableSetModifierConstructorDescriptionprivateCartesianSet(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.spliteratorSuppliersConstructors in com.google.common.collect.testing with parameters of type ImmutableSetModifierConstructorDescriptionprivateSpliteratorTester(ImmutableSet<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 ImmutableSetModifier and TypeMethodDescriptionMapGenerators.ImmutableMapValuesAsSingletonSetGenerator.createValueArray(int length) -
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.flattenHierarchyCacheGlobal 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 ofClassobjects 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 -
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.classesprivate ImmutableSet<TypeToken<? super T>>TypeToken.InterfaceSet.interfacesprivate final ImmutableSet<ClassPath.ResourceInfo>ClassPath.resourcesprivate ImmutableSet<TypeToken<? super T>>TypeToken.TypeSet.typesMethods 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-Pathmanifest 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 ispackageNameor starts withpackageNamefollowed by a '.'.(package private) static ImmutableSet<ClassPath.LocationInfo>ClassPath.locationsFrom(ClassLoader classloader) Returns all locations thatclassloaderand 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_NAMESMethods 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