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.
|
Modifier and Type | Class and Description |
---|---|
class |
ContiguousSet<C extends java.lang.Comparable>
A sorted set of contiguous values in a given
DiscreteDomain . |
(package private) class |
DescendingImmutableSortedSet<E>
Skeletal implementation of
ImmutableSortedSet.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 of
ImmutableSet backed by a non-empty EnumSet . |
(package private) class |
ImmutableMapEntrySet<K,V>
entrySet() implementation for ImmutableMap . |
(package private) static class |
ImmutableMapEntrySet.RegularEntrySet<K,V> |
(package private) class |
ImmutableMapKeySet<K,V>
keySet() implementation for ImmutableMap . |
(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>
A
NavigableSet whose contents will never change, with many other important properties
detailed at ImmutableCollection . |
(package private) class |
ImmutableSortedSetFauxverideShim<E>
"Overrides" the
ImmutableSet static methods that lack ImmutableSortedSet
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 of
ContiguousSet that contains one or more elements. |
(package private) class |
RegularImmutableBiMap.Inverse.InverseEntrySet |
private static class |
RegularImmutableMap.KeySet<K> |
(package private) class |
RegularImmutableSet<E>
Implementation of
ImmutableSet 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 of
ImmutableSet with exactly one element. |
Modifier and Type | Field and 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 |
Modifier and Type | Field and 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 |
Modifier and Type | Method and 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) abstract ImmutableSet<E> |
ImmutableSet.SetBuilderImpl.build() |
(package private) ImmutableSet<E> |
ImmutableSet.EmptySetBuilderImpl.build() |
(package private) ImmutableSet<E> |
ImmutableSet.RegularSetBuilderImpl.build() |
(package private) ImmutableSet<E> |
ImmutableSet.JdkBackedSetBuilderImpl.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 an
ImmutableSet from the first n elements of the specified array. |
private static <E> ImmutableSet<E> |
ImmutableSet.constructUnknownDuplication(int n,
java.lang.Object... elements)
Constructs an
ImmutableSet from the first n 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(java.util.Collection<? extends E> elements)
Returns an immutable set containing each of
elements , minus duplicates, in the order
each appears first in the source collection. |
static <E> ImmutableSet<E> |
ImmutableSet.copyOf(E[] elements)
Returns an immutable set containing each of
elements , 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 of
elements , minus duplicates, in the order
each appears first in the source iterable. |
static <E> ImmutableSet<E> |
ImmutableSet.copyOf(java.util.Iterator<? extends E> elements)
Returns an immutable set containing each of
elements , 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> |
ImmutableSetMultimap.get(K key)
Returns an immutable set of the values for the given key.
|
ImmutableSet<V> |
ImmutableMap.MapViewOfValuesAsSingletonSets.get(java.lang.Object 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>> |
Sets.immutableEnumSet(E anElement,
E... otherElements)
Returns an immutable set instance containing the given enum elements.
|
static <E extends java.lang.Enum<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 in
ImmutableMap.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 containing
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.
|
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 an
ImmutableSet 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 in
ImmutableMap.entrySet . |
private static <V> ImmutableSet<V> |
ImmutableSetMultimap.valueSet(java.util.Comparator<? super V> valueComparator,
java.util.Collection<? extends V> values) |
Modifier and Type | Method and Description |
---|---|
(package private) UnmodifiableIterator<java.util.Map.Entry<K,ImmutableSet<V>>> |
ImmutableMap.MapViewOfValuesAsSingletonSets.entryIterator() |
(package private) static <E extends java.lang.Enum<E>> |
CollectCollectors.toImmutableEnumSet() |
static <E extends java.lang.Enum<E>> |
Sets.toImmutableEnumSet()
Returns a
Collector that accumulates the input elements into a new ImmutableSet
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 a
Collector that accumulates the input elements into a new ImmutableSet . |
static <E> java.util.stream.Collector<E,?,ImmutableSet<E>> |
ImmutableSortedSetFauxverideShim.toImmutableSet()
|
Modifier and Type | Method and 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.
|
(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.
|
Constructor and Description |
---|
DenseImmutableTable(ImmutableList<Table.Cell<R,C,V>> cellList,
ImmutableSet<R> rowSpace,
ImmutableSet<C> columnSpace) |
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) |
SparseImmutableTable(ImmutableList<Table.Cell<R,C,V>> cellList,
ImmutableSet<R> rowSpace,
ImmutableSet<C> columnSpace) |
Constructor and Description |
---|
CartesianSet(ImmutableList<ImmutableSet<E>> axes,
CartesianList<E> delegate) |
ImmutableSetMultimap(ImmutableMap<K,ImmutableSet<V>> map,
int size,
java.util.Comparator<? super V> valueComparator) |
Modifier and Type | Field and Description |
---|---|
private ImmutableSet<java.util.function.Supplier<SpliteratorTester.GeneralSpliterator<E>>> |
SpliteratorTester.spliteratorSuppliers |
Constructor and Description |
---|
SpliteratorTester(ImmutableSet<java.util.function.Supplier<SpliteratorTester.GeneralSpliterator<E>>> spliteratorSuppliers) |
Modifier and Type | Method and Description |
---|---|
ImmutableSet<java.lang.Integer>[] |
MapGenerators.ImmutableMapValuesAsSingletonSetGenerator.createValueArray(int length) |
Modifier and Type | Field and Description |
---|---|
private static LoadingCache<java.lang.Class<?>,ImmutableSet<java.lang.Class<?>>> |
SubscriberRegistry.flattenHierarchyCache
Global cache of classes to their flattened hierarchy of supertypes.
|
Modifier and Type | Method and Description |
---|---|
(package private) static ImmutableSet<java.lang.Class<?>> |
SubscriberRegistry.flattenHierarchy(java.lang.Class<?> concreteClass)
Flattens a class's type hierarchy into a set of
Class objects including all
superclasses (transitively) and all interfaces implemented by these superclasses. |
Modifier and Type | Method and Description |
---|---|
private ImmutableSet<N> |
Traverser.validate(java.lang.Iterable<? extends N> startNodes) |
Modifier and Type | Field and Description |
---|---|
private ImmutableSet<FileWriteMode> |
Files.FileByteSink.modes |
Modifier and Type | Field and 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 |
Modifier and Type | Method and 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 the
Class-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 is
packageName . |
ImmutableSet<ClassPath.ClassInfo> |
ClassPath.getTopLevelClassesRecursive(java.lang.String packageName)
Returns all top level classes whose package name is
packageName or starts with packageName followed by a '.'. |
(package private) static ImmutableSet<ClassPath.LocationInfo> |
ClassPath.locationsFrom(java.lang.ClassLoader classloader)
Returns all locations that
classloader 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.
|
Constructor and Description |
---|
ClassPath(ImmutableSet<ClassPath.ResourceInfo> resources) |
Modifier and Type | Field and Description |
---|---|
private static ImmutableSet<java.lang.String> |
NullPointerTester.NULLABLE_ANNOTATION_SIMPLE_NAMES |
Modifier and Type | Method and Description |
---|---|
(package private) static <E> ImmutableSet<E> |
FreshValueGenerator.generateImmutableSet(E freshElement) |
Modifier and Type | Field and Description |
---|---|
(package private) static ImmutableSet<java.lang.String> |
CycleDetectingLockFactory.ExampleStackTrace.EXCLUDED_CLASS_NAMES |