Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
com.google.common.reflect |
This package contains utilities to work with Java reflection.
|
Modifier and Type | Class and Description |
---|---|
class |
ContiguousSet<C extends Comparable>
A sorted set of contiguous values in a given
DiscreteDomain . |
class |
ImmutableSortedSet<E>
A
NavigableSet whose contents will never change, with many other important properties
detailed at ImmutableCollection . |
Modifier and Type | Method and Description |
---|---|
ImmutableSet<Range<C>> |
ImmutableRangeSet.asDescendingSetOfRanges() |
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> |
ArrayTable.columnKeySet()
Returns an immutable set of the valid column keys, including those that are associated with
null values only.
|
ImmutableSet<C> |
ImmutableTable.columnKeySet() |
static <E> ImmutableSet<E> |
ImmutableSet.copyOf(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(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(Iterator<? extends E> elements)
Returns an immutable set containing each of
elements , minus duplicates, in the order
each appears first in the source iterator. |
abstract ImmutableSet<E> |
ImmutableMultiset.elementSet() |
ImmutableSet<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<Map.Entry<K,V>> |
ImmutableSortedMap.entrySet()
Returns an immutable set of the mappings in this map, sorted by the key ordering.
|
ImmutableSet<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<E> |
Sets.SetView.immutableCopy()
Returns an immutable copy of the current contents of this set view.
|
static <E extends Enum<E>> |
Sets.immutableEnumSet(E anElement,
E... otherElements)
Returns an immutable set instance containing the given enum elements.
|
static <E extends Enum<E>> |
Sets.immutableEnumSet(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(Object key)
Deprecated.
Unsupported operation.
|
ImmutableSet<V> |
ImmutableSetMultimap.replaceValues(K key,
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() |
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 . |
Modifier and Type | Method and Description |
---|---|
ImmutableSet<ClassPath.ClassInfo> |
ClassPath.getAllClasses()
Returns all classes loadable from the current class path.
|
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(String packageName)
Returns all top level classes whose package name is
packageName . |
ImmutableSet<ClassPath.ClassInfo> |
ClassPath.getTopLevelClassesRecursive(String packageName)
Returns all top level classes whose package name is
packageName or starts with packageName followed by a '.'. |
Copyright © 2010–2017. All rights reserved.