Uses of Class
com.google.common.collect.ImmutableList
Packages that use ImmutableList
Package
Description
Collection interfaces and implementations, and other utilities for collections.
Discouraged in favor of dependency injection and
concurrency frameworks, EventBus allows publish-subscribe-style communication.
Utility methods and classes for I/O; for example input streams, output streams, readers, writers,
and files.
Utility methods and classes for networking (such as IP addresses and domain names).
Utilities for reflection.
Testing utilities.
Concurrency utilities.
-
Uses of ImmutableList in com.google.common.collect
Subclasses of ImmutableList in com.google.common.collectModifier and TypeClassDescription(package private) class
List returned byImmutableCollection.asList()
that delegatescontains
checks to the backing collection.private static class
(package private) class
private final class
(package private) final class
List returned byImmutableSortedSet.asList()
when the set isn't empty.private final class
private static final class
(package private) class
AnImmutableAsList
implementation specialized for when the delegate collection is already backed by anImmutableList
or array.(package private) class
Implementation ofImmutableList
backed by a simple array.private static final class
private final class
(package private) final class
Implementation ofImmutableList
with exactly one element.Fields in com.google.common.collect declared as ImmutableListModifier and TypeFieldDescriptionprivate ImmutableList
<E> ImmutableMultiset.asList
private ImmutableList
<E> ImmutableSet.CachingAsList.asList
private final ImmutableList
<List<E>> CartesianList.axes
private final ImmutableList
<ImmutableSet<E>> Sets.CartesianSet.axes
private final ImmutableList
<C> ArrayTable.columnList
private final ImmutableList
<E> JdkBackedImmutableSet.delegateList
private final ImmutableList
<? extends E> RegularImmutableAsList.delegateList
private final ImmutableList
<E> RegularImmutableSortedSet.elements
(package private) static final ImmutableList
<Object> RegularImmutableList.EMPTY
private final ImmutableList
<Map.Entry<K, V>> ImmutableMapEntrySet.RegularEntrySet.entries
private final ImmutableList
<Map.Entry<K, V>> JdkBackedImmutableBiMap.entries
private final ImmutableList
<Map.Entry<K, V>> JdkBackedImmutableMap.entries
private final ImmutableList
<Multiset.Entry<E>> JdkBackedImmutableMultiset.entries
private final ImmutableList
<E> ImmutableList.ReverseImmutableList.forwardList
(package private) final ImmutableList
<E> Collections2.OrderedPermutationCollection.inputList
(package private) final ImmutableList
<E> Collections2.PermutationCollection.inputList
private final ImmutableList
<Range<K>> ImmutableRangeMap.ranges
private final ImmutableList
<Range<C>> ImmutableRangeSet.AsSetSerializedForm.ranges
private final ImmutableList
<Range<C>> ImmutableRangeSet.ranges
private final ImmutableList
<Range<C>> ImmutableRangeSet.SerializedForm.ranges
private final ImmutableList
<R> ArrayTable.rowList
private final ImmutableList
<V> ImmutableSortedMap.valueList
private final ImmutableList
<V> ImmutableRangeMap.values
Fields in com.google.common.collect with type parameters of type ImmutableListModifier and TypeFieldDescriptionprivate static final Collector
<Object, ?, ImmutableList<Object>> CollectCollectors.TO_IMMUTABLE_LIST
Methods in com.google.common.collect that return ImmutableListModifier and TypeMethodDescription(package private) static <E> ImmutableList
<E> ImmutableList.asImmutableList
(Object[] elements) Views the array as an immutable list.(package private) static <E> ImmutableList
<E> ImmutableList.asImmutableList
(Object[] elements, int length) Views the array as an immutable list.EmptyContiguousSet.asList()
ImmutableCollection.asList()
Returns anImmutableList
containing the same elements, in the same order, as this collection.final ImmutableList
<E> ImmutableList.asList()
Deprecated.ImmutableMapValues.asList()
ImmutableMultiset.asList()
ImmutableSet.CachingAsList.asList()
SingletonImmutableSet.asList()
ImmutableList.Builder.build()
Returns a newly-createdImmutableList
based on the contents of theBuilder
.(package private) ImmutableList
<E> ImmutableList.Builder.buildSorted
(Comparator<? super E> comparator) Returns a newly-createdImmutableList
based on the contents of theBuilder
, sorted according to the specified comparator.static ImmutableList
<Character> Lists.charactersOf
(String string) Returns a view of the specified string as an immutable list ofCharacter
values.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> Views the array as an immutable list.static <E> ImmutableList
<E> ImmutableList.copyOf
(E[] elements) Returns an immutable list containing the given elements, in order.static <E> ImmutableList
<E> Returns an immutable list containing the given elements, in order.static <E> ImmutableList
<E> ImmutableList.copyOf
(Collection<? extends E> elements) Returns an immutable list containing the given elements, in order.static <E> ImmutableList
<E> Returns an immutable list containing the given elements, in order.(package private) ImmutableList
<Map.Entry<K, V>> ImmutableMapEntrySet.RegularEntrySet.createAsList()
(package private) ImmutableList
<E> ImmutableSet.CachingAsList.createAsList()
(package private) ImmutableList
<E> ImmutableSet.Indexed.createAsList()
(package private) ImmutableList
<E> IndexedImmutableSet.createAsList()
(package private) ImmutableList
<C> RegularContiguousSet.createAsList()
(package private) ImmutableList
<Map.Entry<V, K>> RegularImmutableBiMap.Inverse.InverseEntrySet.createAsList()
(package private) ImmutableList
<E> RegularImmutableSet.createAsList()
(package private) ImmutableList
<E> RegularImmutableSortedSet.createAsList()
(package private) ImmutableList
<? extends E> RegularImmutableAsList.delegateList()
CartesianList.get
(int index) Returns an immutable list of the values for the given key.<E> ImmutableList
<E> AllEqualOrdering.immutableSortedCopy
(Iterable<E> iterable) <E extends T>
ImmutableList<E> Ordering.immutableSortedCopy
(Iterable<E> elements) Returns an immutable list containingelements
sorted by this ordering.private ImmutableList
<Range<C>> ImmutableRangeSet.intersectRanges
(Range<C> range) Returns a list containing the nonempty intersections ofrange
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 e1) 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.final ImmutableList
<V> Deprecated.Unsupported operation.final ImmutableList
<V> ImmutableListMultimap.replaceValues
(K key, Iterable<? extends V> values) Deprecated.Unsupported operation.ImmutableList.reverse()
Returns a view of this immutable list in reverse order.ImmutableList.ReverseImmutableList.reverse()
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.static <E extends Comparable<? super E>>
ImmutableList<E> ImmutableList.sortedCopyOf
(Iterable<? extends E> elements) Returns an immutable list containing the given elements, sorted according to their natural order.static <E> ImmutableList
<E> ImmutableList.sortedCopyOf
(Comparator<? super E> comparator, Iterable<? extends E> elements) Returns an immutable list containing the given elements, in sorted order relative to the specified comparator.ImmutableList.ReverseImmutableList.subList
(int fromIndex, int toIndex) ImmutableList.subList
(int fromIndex, int toIndex) Returns an immutable list of the elements between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive.ImmutableList.SubList.subList
(int fromIndex, int toIndex) Lists.StringAsImmutableList.subList
(int fromIndex, int toIndex) SingletonImmutableList.subList
(int fromIndex, int toIndex) (package private) ImmutableList
<E> ImmutableList.subListUnchecked
(int fromIndex, int toIndex) Called by the default implementation ofsubList(int, int)
whentoIndex - fromIndex > 1
, after index validation has already been performed.(package private) ImmutableList
<E> ImmutableSortedAsList.subListUnchecked
(int fromIndex, int toIndex) final ImmutableList
<E> FluentIterable.toList()
Returns anImmutableList
containing all of the elements from this fluent iterable in proper sequence.final ImmutableList
<E> FluentIterable.toSortedList
(Comparator<? super E> comparator) Returns anImmutableList
containing all of the elements from thisFluentIterable
in the order specified bycomparator
.Methods in com.google.common.collect that return types with arguments of type ImmutableListModifier and TypeMethodDescription(package private) static <E> Collector
<E, ?, ImmutableList<E>> CollectCollectors.toImmutableList()
static <E> Collector
<E, ?, ImmutableList<E>> ImmutableList.toImmutableList()
Returns aCollector
that accumulates the input elements into a newImmutableList
, in encounter order.Methods in com.google.common.collect with parameters of type ImmutableListModifier 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 ImmutableListModifierConstructorDescription(package private)
AsSetSerializedForm
(ImmutableList<Range<C>> ranges, DiscreteDomain<C> domain) (package private)
CartesianList
(ImmutableList<List<E>> axes) private
CartesianSet
(ImmutableList<ImmutableSet<E>> axes, CartesianList<E> delegate) (package private)
DenseImmutableTable
(ImmutableList<Table.Cell<R, C, V>> cellList, ImmutableSet<R> rowSpace, ImmutableSet<C> columnSpace) (package private)
ImmutableRangeMap
(ImmutableList<Range<K>> ranges, ImmutableList<V> values) (package private)
ImmutableRangeSet
(ImmutableList<Range<C>> ranges) private
ImmutableRangeSet
(ImmutableList<Range<C>> ranges, ImmutableRangeSet<C> complement) (package private)
ImmutableSortedAsList
(ImmutableSortedSet<E> backingSet, ImmutableList<E> backingList) (package private)
ImmutableSortedMap
(RegularImmutableSortedSet<K> keySet, ImmutableList<V> valueList) (package private)
ImmutableSortedMap
(RegularImmutableSortedSet<K> keySet, ImmutableList<V> valueList, ImmutableSortedMap<K, V> descendingMap) private
JdkBackedImmutableBiMap
(ImmutableList<Map.Entry<K, V>> entries, Map<K, V> forwardDelegate, Map<V, K> backwardDelegate) (package private)
JdkBackedImmutableMap
(Map<K, V> delegateMap, ImmutableList<Map.Entry<K, V>> entries) private
JdkBackedImmutableMultiset
(Map<E, Integer> delegateMap, ImmutableList<Multiset.Entry<E>> entries, long size) (package private)
JdkBackedImmutableSet
(Set<?> delegate, ImmutableList<E> delegateList) (package private)
PermutationCollection
(ImmutableList<E> input) (package private)
RegularEntrySet
(ImmutableMap<K, V> map, ImmutableList<Map.Entry<K, V>> entries) (package private)
RegularImmutableAsList
(ImmutableCollection<E> delegate, ImmutableList<? extends E> delegateList) (package private)
RegularImmutableSortedSet
(ImmutableList<E> elements, Comparator<? super E> comparator) (package private)
ReverseImmutableList
(ImmutableList<E> backingList) (package private)
SerializedForm
(ImmutableList<Range<C>> ranges) (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 ImmutableListModifierConstructorDescription(package private)
ImmutableListMultimap
(ImmutableMap<K, ImmutableList<V>> map, int size) -
Uses of ImmutableList in com.google.common.eventbus
Fields in com.google.common.eventbus with type parameters of type ImmutableListModifier and TypeFieldDescriptionprivate static final LoadingCache
<Class<?>, ImmutableList<Method>> SubscriberRegistry.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
.Methods in com.google.common.eventbus that return ImmutableListModifier and TypeMethodDescriptionprivate static ImmutableList
<Method> SubscriberRegistry.getAnnotatedMethods
(Class<?> clazz) private static ImmutableList
<Method> SubscriberRegistry.getAnnotatedMethodsNotCached
(Class<?> clazz) -
Uses of ImmutableList in com.google.common.io
Methods in com.google.common.io that return ImmutableListModifier and TypeMethodDescriptionstatic ImmutableList
<Path> Returns an immutable list of paths to the files contained in the given directory.CharSource.CharSequenceCharSource.readLines()
CharSource.readLines()
Reads all the lines of this source as a list of strings. -
Uses of ImmutableList in com.google.common.net
Fields in com.google.common.net declared as ImmutableListModifier and TypeFieldDescriptionprivate final ImmutableList
<String> InternetDomainName.parts
The parts of the domain name, converted to lower case.Methods in com.google.common.net that return ImmutableListModifier and TypeMethodDescriptionInternetDomainName.parts()
Returns the individual components of this domain name, normalized to all lower case.Constructors in com.google.common.net with parameters of type ImmutableListModifierConstructorDescriptionprivate
InternetDomainName
(String name, ImmutableList<String> parts) Internal constructor that skips validations when creating an instance from parts of an already-validated InternetDomainName, as inInternetDomainName.ancestor(int)
. -
Uses of ImmutableList in com.google.common.reflect
Fields in com.google.common.reflect declared as ImmutableListModifier and TypeFieldDescriptionprivate final ImmutableList
<Annotation> Parameter.annotations
private final ImmutableList
<Type> Types.ParameterizedTypeImpl.argumentsList
private final ImmutableList
<Type> Types.TypeVariableImpl.bounds
private final ImmutableList
<Type> Types.WildcardTypeImpl.lowerBounds
private final ImmutableList
<Type> Types.WildcardTypeImpl.upperBounds
Methods in com.google.common.reflect that return ImmutableListModifier and TypeMethodDescriptionprivate ImmutableList
<TypeToken<? super T>> TypeToken.boundsAsInterfaces
(Type[] bounds) (package private) ImmutableList
<K> TypeToken.TypeCollector.collectTypes
(Iterable<? extends K> types) (package private) final ImmutableList
<K> TypeToken.TypeCollector.collectTypes
(K type) private static ImmutableList
<URL> ClassPath.getClassLoaderUrls
(ClassLoader classloader) final ImmutableList
<TypeToken<? extends Throwable>> Invokable.getExceptionTypes()
Returns all declared exception types of thisInvokable
.(package private) final ImmutableList
<TypeToken<? super T>> TypeToken.getGenericInterfaces()
Returns the generic interfaces that this type directlyimplements
.final ImmutableList
<Parameter> Invokable.getParameters()
Returns all declared parameters of thisInvokable
.(package private) static ImmutableList
<URL> ClassPath.parseJavaClassPath()
Returns the URLs in the class path specified by thejava.class.path
system property.private static <K,
V> ImmutableList <K> TypeToken.TypeCollector.sortKeysByValue
(Map<K, V> map, Comparator<? super V> valueComparator) (package private) final ImmutableList
<Type> Types.JavaVersion.usedInGenericType
(Type[] types) -
Uses of ImmutableList in com.google.common.testing
Fields in com.google.common.testing declared as ImmutableListModifier and TypeFieldDescriptionprivate static final ImmutableList
<String> AbstractPackageSanityTests.EQUALS_TEST_METHOD_NAMES
private final ImmutableList
<Invokable<?, ?>> ClassSanityTester.FactoryMethodReturnValueTester.factories
private static final ImmutableList
<String> AbstractPackageSanityTests.NULL_TEST_METHOD_NAMES
private final ImmutableList
<Class<?>> NullPointerTester.Signature.parameterTypes
private static final ImmutableList
<String> AbstractPackageSanityTests.SERIALIZABLE_TEST_METHOD_NAMES
Fields in com.google.common.testing with type parameters of type ImmutableListMethods in com.google.common.testing that return ImmutableListModifier and TypeMethodDescription(package private) static <E> ImmutableList
<E> FreshValueGenerator.generateImmutableList
(E freshElement) private static <T> ImmutableList
<Invokable<?, ? extends T>> ClassSanityTester.getFactories
(TypeToken<T> type) Factories with the least number of parameters are listed first.private ImmutableList
<Invokable<?, ?>> ClassSanityTester.FactoryMethodReturnValueTester.getFactoriesToTest()
(package private) ImmutableList
<Method> NullPointerTester.getInstanceMethodsToTest
(Class<?> c, NullPointerTester.Visibility minimalVisibility) private ImmutableList
<Method> NullPointerTester.Visibility.getVisibleMethods
(Class<?> cls) Constructors in com.google.common.testing with parameters of type ImmutableListModifierConstructorDescriptionprivate
FactoryMethodReturnValueTester
(Class<?> declaringClass, ImmutableList<Invokable<?, ?>> factories, String factoryMethodsDescription) (package private)
Signature
(String name, ImmutableList<Class<?>> parameterTypes) -
Uses of ImmutableList in com.google.common.util.concurrent
Fields in com.google.common.util.concurrent declared as ImmutableListModifier and TypeFieldDescriptionprivate final ImmutableList
<ClosingFuture<?>> ClosingFuture.Peeker.futures
private final ImmutableList
<ListenableFuture<? extends V>> Futures.FutureCombiner.futures
protected final ImmutableList
<ClosingFuture<?>> ClosingFuture.Combiner.inputs
private final ImmutableList
<Service> ServiceManager.services
Methods in com.google.common.util.concurrent that return ImmutableListModifier and TypeMethodDescriptionstatic <T> ImmutableList
<ListenableFuture<T>> Futures.inCompletionOrder
(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 ImmutableList
<FluentFuture<?>> ClosingFuture.Combiner.inputFutures()
private <T> ImmutableList
<Callable<T>> WrappingExecutorService.wrapTasks
(Collection<? extends Callable<T>> tasks) Wraps a collection of tasks.Methods in com.google.common.util.concurrent with parameters of type ImmutableListModifier and TypeMethodDescriptionprivate void
Futures.InCompletionOrderState.recordInputCompletion
(ImmutableList<AbstractFuture<T>> delegates, int inputFutureIndex) Constructors in com.google.common.util.concurrent with parameters of type ImmutableListModifierConstructorDescriptionprivate
FutureCombiner
(boolean allMustSucceed, ImmutableList<ListenableFuture<? extends V>> futures) private
Peeker
(ImmutableList<ClosingFuture<?>> futures)
this
.