Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
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.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.
|
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 . |
private class |
ImmutableMultiset.EntrySet |
private class |
ImmutableRangeSet.AsSet |
(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 |
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,V> |
private class |
RegularImmutableMultiset.ElementSet |
(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> |
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<Multiset.Entry<E>> |
ImmutableMultiset.entrySet |
private ImmutableSet<java.util.Map.Entry<K,V>> |
ImmutableMap.entrySet |
private ImmutableSet<K> |
ImmutableMap.keySet |
Modifier and Type | Field and Description |
---|---|
private ImmutableList<ImmutableSet<E>> |
Sets.CartesianSet.axes |
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()
Returns a newly-created
ImmutableSet based on the contents of
the Builder . |
ImmutableSet<Table.Cell<R,C,V>> |
ImmutableTable.cellSet() |
ImmutableSet<C> |
ImmutableTable.columnKeySet() |
ImmutableSet<C> |
ArrayTable.columnKeySet()
Returns an immutable set of the valid column keys, including those that
are associated with null values only.
|
private static <E> ImmutableSet<E> |
ImmutableSet.construct(int n,
java.lang.Object... elements)
Constructs an
ImmutableSet from the first n elements of the specified array. |
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) ImmutableSet<Table.Cell<R,C,V>> |
RegularImmutableTable.createCellSet() |
(package private) abstract ImmutableSet<Table.Cell<R,C,V>> |
ImmutableTable.createCellSet() |
(package private) ImmutableSet<Table.Cell<R,C,V>> |
SingletonImmutableTable.createCellSet() |
(package private) ImmutableSet<java.util.Map.Entry<K,V>> |
SingletonImmutableBiMap.createEntrySet() |
private ImmutableSet<Multiset.Entry<E>> |
ImmutableMultiset.createEntrySet() |
(package private) ImmutableSet<java.util.Map.Entry<K,V>> |
RegularImmutableMap.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>> |
ImmutableSortedMap.createEntrySet() |
(package private) abstract ImmutableSet<java.util.Map.Entry<K,V>> |
ImmutableMap.createEntrySet() |
(package private) ImmutableSet<java.util.Map.Entry<K,V>> |
ImmutableMap.IteratorBasedImmutableMap.createEntrySet() |
(package private) ImmutableSet<K> |
DenseImmutableTable.ImmutableArrayMap.createKeySet() |
(package private) ImmutableSet<K> |
SingletonImmutableBiMap.createKeySet() |
(package private) ImmutableSet<K> |
RegularImmutableMap.createKeySet() |
(package private) ImmutableSet<K> |
ImmutableMap.createKeySet() |
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<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<java.util.Map.Entry<K,V>> |
ImmutableMap.entrySet()
Returns an immutable set of the mappings in this map.
|
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> |
ImmutableMultimap.keySet()
Returns an immutable set of the distinct keys in this multimap, in the same
order as they appear in this multimap.
|
ImmutableSet<K> |
ImmutableMap.keySet()
Returns an immutable set of the keys in this map.
|
ImmutableSet<K> |
ImmutableMap.MapViewOfValuesAsSingletonSets.keySet() |
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> |
ImmutableTable.rowKeySet() |
ImmutableSet<R> |
ArrayTable.rowKeySet()
Returns an immutable set of the valid row keys, including those that are
associated with null values only.
|
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.
|
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() |
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) |
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 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 | 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.Scanner.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.
|
(package private) ImmutableSet<ClassPath.ResourceInfo> |
ClassPath.DefaultScanner.getResources() |
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 '.'. |
Constructor and Description |
---|
ClassPath(ImmutableSet<ClassPath.ResourceInfo> resources) |
Modifier and Type | Method and Description |
---|---|
private static <E> ImmutableSet<E> |
FreshValueGenerator.generateImmutableSet(E freshElement) |