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.net |
This package contains utility methods and classes for working with net
addresses (numeric IP and domain names).
|
com.google.common.reflect |
This package contains utilities to work with Java reflection.
|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ImmutableAsList<E>
List returned by
ImmutableCollection.asList that delegates contains checks
to the backing collection. |
private static class |
ImmutableList.ReverseImmutableList<E> |
(package private) class |
ImmutableList.SubList |
private class |
ImmutableRangeSet.ComplementRanges |
(package private) class |
ImmutableSortedAsList<E>
List returned by
ImmutableSortedSet.asList() when the set isn't empty. |
private static class |
Lists.StringAsImmutableList |
(package private) class |
RegularImmutableAsList<E>
An
ImmutableAsList implementation specialized for when the delegate collection is
already backed by an ImmutableList or array. |
(package private) class |
RegularImmutableList<E>
Implementation of
ImmutableList with one or more elements. |
private class |
RegularImmutableTable.Values |
(package private) class |
SingletonImmutableList<E>
Implementation of
ImmutableList with exactly one element. |
Modifier and Type | Field and Description |
---|---|
private ImmutableList<E> |
ImmutableCollection.asList |
private ImmutableList<java.util.List<E>> |
CartesianList.axes |
private ImmutableList<ImmutableSet<E>> |
Sets.CartesianSet.axes |
private ImmutableList<C> |
ArrayTable.columnList |
(package private) ImmutableList<java.util.Comparator<? super T>> |
CompoundOrdering.comparators |
private ImmutableList<? extends E> |
RegularImmutableAsList.delegateList |
private ImmutableList<E> |
RegularImmutableSortedSet.elements |
private static ImmutableList<java.lang.Object> |
ImmutableList.EMPTY |
private ImmutableList<E> |
ImmutableList.ReverseImmutableList.forwardList |
(package private) ImmutableList<E> |
Collections2.OrderedPermutationCollection.inputList |
(package private) ImmutableList<E> |
Collections2.PermutationCollection.inputList |
private ImmutableList<Range<K>> |
ImmutableRangeMap.ranges |
private ImmutableList<Range<C>> |
ImmutableRangeSet.ranges |
private ImmutableList<Range<C>> |
ImmutableRangeSet.AsSetSerializedForm.ranges |
private ImmutableList<Range<C>> |
ImmutableRangeSet.SerializedForm.ranges |
private ImmutableList<R> |
ArrayTable.rowList |
private ImmutableList<V> |
RegularImmutableSortedMap.valueList |
private ImmutableList<V> |
ImmutableRangeMap.values |
Modifier and Type | Method and Description |
---|---|
(package private) static <E> ImmutableList<E> |
ImmutableList.asImmutableList(java.lang.Object[] elements)
Views the array as an immutable list.
|
(package private) static <E> ImmutableList<E> |
ImmutableList.asImmutableList(java.lang.Object[] elements,
int length)
Views the array as an immutable list.
|
ImmutableList<C> |
EmptyContiguousSet.asList() |
ImmutableList<java.lang.Object> |
EmptyImmutableSet.asList() |
ImmutableList<E> |
EmptyImmutableSortedMultiset.asList() |
ImmutableList<E> |
EmptyImmutableSortedSet.asList() |
ImmutableList<E> |
ImmutableCollection.asList()
Returns a list view of the collection.
|
ImmutableList<E> |
ImmutableList.asList()
Returns this list instance.
|
ImmutableList<E> |
ImmutableList.Builder.build()
Returns a newly-created
ImmutableList based on the contents of
the Builder . |
static ImmutableList<java.lang.Character> |
Lists.charactersOf(java.lang.String string)
Returns a view of the specified string as an immutable list of
Character values. |
ImmutableList<C> |
ArrayTable.columnKeyList()
Returns, as an immutable list, the column keys provided when the table was
constructed, including those that are mapped to null values only.
|
private static <E> ImmutableList<E> |
ImmutableList.construct(java.lang.Object... elements)
Views the array as an immutable list.
|
static <E> ImmutableList<E> |
ImmutableList.copyOf(java.util.Collection<? extends E> elements)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.copyOf(E[] elements)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.copyOf(java.lang.Iterable<? extends E> elements)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.copyOf(java.util.Iterator<? extends E> elements)
Returns an immutable list containing the given elements, in order.
|
(package private) ImmutableList<E> |
ImmutableCollection.createAsList() |
(package private) ImmutableList<K> |
ImmutableMapKeySet.createAsList() |
(package private) ImmutableList<V> |
ImmutableMapValues.createAsList() |
(package private) ImmutableList<Multiset.Entry<E>> |
ImmutableMultiset.EntrySet.createAsList() |
(package private) ImmutableList<java.util.Map.Entry<V,K>> |
RegularImmutableBiMap.Inverse.InverseEntrySet.createAsList() |
(package private) ImmutableList<java.util.Map.Entry<K,V>> |
RegularImmutableMap.EntrySet.createAsList() |
(package private) ImmutableList<E> |
RegularImmutableSet.createAsList() |
(package private) ImmutableList<java.util.Map.Entry<K,V>> |
RegularImmutableSortedMap.EntrySet.createAsList() |
(package private) ImmutableList<E> |
RegularImmutableSortedSet.createAsList() |
(package private) ImmutableList<Table.Cell<R,C,V>> |
RegularImmutableTable.CellSet.createAsList() |
(package private) ImmutableList<? extends E> |
RegularImmutableAsList.delegateList() |
ImmutableList<E> |
CartesianList.get(int index) |
ImmutableList<V> |
ImmutableListMultimap.get(K key)
Returns an immutable list of the values for the given key.
|
<E> ImmutableList<E> |
AllEqualOrdering.immutableSortedCopy(java.lang.Iterable<E> iterable) |
<E extends T> |
Ordering.immutableSortedCopy(java.lang.Iterable<E> elements)
Returns an immutable list containing
elements sorted by this
ordering. |
private ImmutableList<Range<C>> |
ImmutableRangeSet.intersectRanges(Range<C> range)
Returns a list containing the nonempty intersections of
range
with the ranges in this range set. |
static <E> ImmutableList<E> |
ImmutableList.of()
Returns the empty immutable list.
|
static <E> ImmutableList<E> |
ImmutableList.of(E element)
Returns an immutable list containing a single element.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9,
E e10)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9,
E e10,
E e11)
Returns an immutable list containing the given elements, in order.
|
static <E> ImmutableList<E> |
ImmutableList.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7,
E e8,
E e9,
E e10,
E e11,
E e12,
E... others)
Returns an immutable list containing the given elements, in order.
|
ImmutableList<V> |
ImmutableListMultimap.removeAll(java.lang.Object key)
Deprecated.
Unsupported operation.
|
ImmutableList<V> |
ImmutableListMultimap.replaceValues(K key,
java.lang.Iterable<? extends V> values)
Deprecated.
Unsupported operation.
|
ImmutableList<E> |
ImmutableList.reverse()
Returns a view of this immutable list in reverse order.
|
ImmutableList<E> |
ImmutableList.ReverseImmutableList.reverse() |
ImmutableList<E> |
SingletonImmutableList.reverse() |
ImmutableList<R> |
ArrayTable.rowKeyList()
Returns, as an immutable list, the row keys provided when the table was
constructed, including those that are mapped to null values only.
|
ImmutableList<E> |
ImmutableList.subList(int fromIndex,
int toIndex)
Returns an immutable list of the elements between the specified
fromIndex , inclusive, and toIndex , exclusive. |
ImmutableList<E> |
ImmutableList.SubList.subList(int fromIndex,
int toIndex) |
ImmutableList<E> |
ImmutableList.ReverseImmutableList.subList(int fromIndex,
int toIndex) |
ImmutableList<java.lang.Character> |
Lists.StringAsImmutableList.subList(int fromIndex,
int toIndex) |
ImmutableList<E> |
SingletonImmutableList.subList(int fromIndex,
int toIndex) |
(package private) ImmutableList<E> |
ImmutableList.subListUnchecked(int fromIndex,
int toIndex)
Called by the default implementation of
subList(int, int) when toIndex - fromIndex > 1 , after index validation has already been
performed. |
(package private) ImmutableList<E> |
ImmutableSortedAsList.subListUnchecked(int fromIndex,
int toIndex) |
(package private) ImmutableList<E> |
RegularImmutableList.subListUnchecked(int fromIndex,
int toIndex) |
ImmutableList<E> |
FluentIterable.toList()
Returns an
ImmutableList containing all of the elements from this fluent iterable in
proper sequence. |
ImmutableList<E> |
FluentIterable.toSortedList(java.util.Comparator<? super E> comparator)
Returns an
ImmutableList containing all of the elements from this FluentIterable in the order specified by comparator . |
Modifier and Type | Method and Description |
---|---|
(package private) static <K,V> ImmutableSortedMap<K,V> |
ImmutableSortedMap.from(ImmutableSortedSet<K> keySet,
ImmutableList<V> valueList) |
Constructor and Description |
---|
ImmutableListMultimap(ImmutableMap<K,ImmutableList<V>> map,
int size) |
Modifier and Type | Field and Description |
---|---|
private static LoadingCache<java.lang.Class<?>,ImmutableList<java.lang.reflect.Method>> |
AnnotatedSubscriberFinder.subscriberMethodsCache
A thread-safe cache that contains the mapping from each class to all methods in that class and
all super-classes, that are annotated with
@Subscribe . |
Modifier and Type | Method and Description |
---|---|
private static ImmutableList<java.lang.reflect.Method> |
AnnotatedSubscriberFinder.getAnnotatedMethods(java.lang.Class<?> clazz) |
private static ImmutableList<java.lang.reflect.Method> |
AnnotatedSubscriberFinder.getAnnotatedMethodsInternal(java.lang.Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
ImmutableList<java.lang.String> |
CharSource.readLines()
Reads all the lines of this source as a list of strings.
|
ImmutableList<java.lang.String> |
CharSource.CharSequenceCharSource.readLines() |
Modifier and Type | Field and Description |
---|---|
private ImmutableList<java.lang.String> |
InternetDomainName.parts
The parts of the domain name, converted to lower case.
|
Modifier and Type | Method and Description |
---|---|
ImmutableList<java.lang.String> |
InternetDomainName.parts()
Returns the individual components of this domain name, normalized to all
lower case.
|
Modifier and Type | Field and Description |
---|---|
private ImmutableList<java.lang.annotation.Annotation> |
Parameter.annotations |
private ImmutableList<java.lang.reflect.Type> |
Types.ParameterizedTypeImpl.argumentsList |
private ImmutableList<java.lang.reflect.Type> |
Types.TypeVariableImpl.bounds |
private ImmutableList<java.lang.reflect.Type> |
Types.WildcardTypeImpl.lowerBounds |
private ImmutableList<java.lang.reflect.Type> |
Types.WildcardTypeImpl.upperBounds |
Modifier and Type | Method and Description |
---|---|
private ImmutableList<TypeToken<? super T>> |
TypeToken.boundsAsInterfaces(java.lang.reflect.Type[] bounds) |
(package private) ImmutableList<K> |
TypeToken.TypeCollector.collectTypes(java.lang.Iterable<? extends K> types) |
(package private) ImmutableList<K> |
TypeToken.TypeCollector.collectTypes(K type) |
ImmutableList<TypeToken<? extends java.lang.Throwable>> |
Invokable.getExceptionTypes()
Returns all declared exception types of this
Invokable . |
(package private) ImmutableList<TypeToken<? super T>> |
TypeToken.getGenericInterfaces()
Returns the generic interfaces that this type directly
implements . |
ImmutableList<Parameter> |
Invokable.getParameters()
Returns all declared parameters of this
Invokable . |
private static <K,V> ImmutableList<K> |
TypeToken.TypeCollector.sortKeysByValue(java.util.Map<K,V> map,
java.util.Comparator<? super V> valueComparator) |
(package private) ImmutableList<java.lang.reflect.Type> |
Types.JavaVersion.usedInGenericType(java.lang.reflect.Type[] types) |
Modifier and Type | Field and Description |
---|---|
(package private) ImmutableList<ListenableFuture<?>> |
Futures.CombinerFuture.futures |
private ImmutableList<Service> |
ServiceManager.services |
Modifier and Type | Method and Description |
---|---|
static <T> ImmutableList<ListenableFuture<T>> |
Futures.inCompletionOrder(java.lang.Iterable<? extends ListenableFuture<? extends T>> futures)
Returns a list of delegate futures that correspond to the futures received in the order
that they complete.
|
private <T> ImmutableList<java.util.concurrent.Callable<T>> |
WrappingExecutorService.wrapTasks(java.util.Collection<? extends java.util.concurrent.Callable<T>> tasks)
Wraps a collection of tasks.
|
Modifier and Type | Method and Description |
---|---|
private static <V> ListenableFuture<java.util.List<V>> |
Futures.listFuture(ImmutableList<ListenableFuture<? extends V>> futures,
boolean allMustSucceed,
java.util.concurrent.Executor listenerExecutor)
|
Constructor and Description |
---|
CombinerFuture(java.util.concurrent.Callable<V> callable,
ImmutableList<ListenableFuture<?>> futures) |