Uses of Class
com.google.common.collect.ImmutableList
-
Packages that use ImmutableList 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.testing This package contains testing utilities.com.google.common.util.concurrent Concurrency utilities. -
-
Uses of ImmutableList in com.google.common.collect
Subclasses of ImmutableList in com.google.common.collect Modifier and Type Class Description (package private) class
ImmutableAsList<E>
List returned byImmutableCollection.asList()
that delegatescontains
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 byImmutableSortedSet.asList()
when the set isn't empty.private class
JdkBackedImmutableBiMap.InverseEntries
private static class
Lists.StringAsImmutableList
(package private) class
RegularImmutableAsList<E>
AnImmutableAsList
implementation specialized for when the delegate collection is already backed by anImmutableList
or array.(package private) class
RegularImmutableList<E>
Implementation ofImmutableList
backed by a simple array.private static class
RegularImmutableMap.Values<K,V>
private class
RegularImmutableTable.Values
(package private) class
SingletonImmutableList<E>
Implementation ofImmutableList
with exactly one element.Fields in com.google.common.collect declared as ImmutableList Modifier and Type Field Description private ImmutableList<E>
ImmutableMultiset. asList
private ImmutableList<E>
ImmutableSet. asList
private ImmutableList<java.util.List<E>>
CartesianList. axes
private ImmutableList<ImmutableSet<E>>
Sets.CartesianSet. axes
private ImmutableList<C>
ArrayTable. columnList
private ImmutableList<E>
JdkBackedImmutableSet. delegateList
private ImmutableList<? extends E>
RegularImmutableAsList. delegateList
private ImmutableList<E>
RegularImmutableSortedSet. elements
(package private) static ImmutableList<java.lang.Object>
RegularImmutableList. EMPTY
private ImmutableList<java.util.Map.Entry<K,V>>
ImmutableMapEntrySet.RegularEntrySet. entries
private ImmutableList<java.util.Map.Entry<K,V>>
JdkBackedImmutableBiMap. entries
private ImmutableList<java.util.Map.Entry<K,V>>
JdkBackedImmutableMap. entries
private ImmutableList<Multiset.Entry<E>>
JdkBackedImmutableMultiset. entries
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.AsSetSerializedForm. ranges
private ImmutableList<Range<C>>
ImmutableRangeSet. ranges
private ImmutableList<Range<C>>
ImmutableRangeSet.SerializedForm. ranges
private ImmutableList<R>
ArrayTable. rowList
private ImmutableList<V>
ImmutableSortedMap. valueList
private ImmutableList<V>
ImmutableRangeMap. values
Fields in com.google.common.collect with type parameters of type ImmutableList Modifier and Type Field Description private static java.util.stream.Collector<java.lang.Object,?,ImmutableList<java.lang.Object>>
CollectCollectors. TO_IMMUTABLE_LIST
Methods in com.google.common.collect that return ImmutableList Modifier and Type Method 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<E>
ImmutableCollection. asList()
Returns anImmutableList
containing the same elements, in the same order, as this collection.ImmutableList<E>
ImmutableList. asList()
Returns this list instance.ImmutableList<V>
ImmutableMapValues. asList()
ImmutableList<E>
ImmutableMultiset. asList()
ImmutableList<E>
ImmutableSet. asList()
ImmutableList<E>
ImmutableList.Builder. build()
Returns a newly-createdImmutableList
based on the contents of theBuilder
.static ImmutableList<java.lang.Character>
Lists. charactersOf(java.lang.String string)
Returns a view of the specified string as an immutable list ofCharacter
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(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.Collection<? 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<java.util.Map.Entry<K,V>>
ImmutableMapEntrySet.RegularEntrySet. createAsList()
(package private) ImmutableList<E>
ImmutableSet. createAsList()
(package private) ImmutableList<E>
ImmutableSet.Indexed. createAsList()
(package private) ImmutableList<E>
IndexedImmutableSet. createAsList()
(package private) ImmutableList<C>
RegularContiguousSet. createAsList()
(package private) ImmutableList<java.util.Map.Entry<V,K>>
RegularImmutableBiMap.Inverse.InverseEntrySet. createAsList()
(package private) ImmutableList<E>
RegularImmutableSet. createAsList()
(package private) ImmutableList<E>
RegularImmutableSortedSet. createAsList()
(package private) ImmutableList<E>
SingletonImmutableSet. 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>
ImmutableList<E>Ordering. immutableSortedCopy(java.lang.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 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<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.static <E extends java.lang.Comparable<? super E>>
ImmutableList<E>ImmutableList. sortedCopyOf(java.lang.Iterable<? extends E> elements)
Returns an immutable list containing the given elements, sorted according to their natural order.static <E> ImmutableList<E>
ImmutableList. sortedCopyOf(java.util.Comparator<? super E> comparator, java.lang.Iterable<? extends E> elements)
Returns an immutable list containing the given elements, in sorted order relative to the specified comparator.ImmutableList<E>
ImmutableList.ReverseImmutableList. subList(int fromIndex, int toIndex)
ImmutableList<E>
ImmutableList. subList(int fromIndex, int toIndex)
Returns an immutable list of the elements between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive.ImmutableList<E>
ImmutableList.SubList. 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 ofsubList(int, int)
whentoIndex - fromIndex > 1
, after index validation has already been performed.(package private) ImmutableList<E>
ImmutableSortedAsList. subListUnchecked(int fromIndex, int toIndex)
ImmutableList<E>
FluentIterable. toList()
Returns anImmutableList
containing all of the elements from this fluent iterable in proper sequence.ImmutableList<E>
FluentIterable. toSortedList(java.util.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 ImmutableList Modifier and Type Method Description (package private) static <E> java.util.stream.Collector<E,?,ImmutableList<E>>
CollectCollectors. toImmutableList()
static <E> java.util.stream.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 ImmutableList Modifier and Type Method 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.Constructor parameters in com.google.common.collect with type arguments of type ImmutableList Constructor Description 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 ImmutableList Modifier and Type Field Description private static LoadingCache<java.lang.Class<?>,ImmutableList<java.lang.reflect.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 ImmutableList Modifier and Type Method Description private static ImmutableList<java.lang.reflect.Method>
SubscriberRegistry. getAnnotatedMethods(java.lang.Class<?> clazz)
private static ImmutableList<java.lang.reflect.Method>
SubscriberRegistry. getAnnotatedMethodsNotCached(java.lang.Class<?> clazz)
-
Uses of ImmutableList in com.google.common.io
Methods in com.google.common.io that return ImmutableList Modifier and Type Method Description static ImmutableList<java.nio.file.Path>
MoreFiles. listFiles(java.nio.file.Path dir)
Returns an immutable list of paths to the files contained in the given directory.ImmutableList<java.lang.String>
CharSource.CharSequenceCharSource. readLines()
ImmutableList<java.lang.String>
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 ImmutableList Modifier and Type Field Description private ImmutableList<java.lang.String>
InternetDomainName. parts
The parts of the domain name, converted to lower case.Methods in com.google.common.net that return ImmutableList Modifier and Type Method Description ImmutableList<java.lang.String>
InternetDomainName. parts()
Returns the individual components of this domain name, normalized to all lower case. -
Uses of ImmutableList in com.google.common.reflect
Fields in com.google.common.reflect declared as ImmutableList Modifier and Type Field 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
Methods in com.google.common.reflect that return ImmutableList Modifier and Type Method 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)
private static ImmutableList<java.net.URL>
ClassPath. getClassLoaderUrls(java.lang.ClassLoader classloader)
ImmutableList<TypeToken<? extends java.lang.Throwable>>
Invokable. getExceptionTypes()
Returns all declared exception types of thisInvokable
.(package private) ImmutableList<TypeToken<? super T>>
TypeToken. getGenericInterfaces()
Returns the generic interfaces that this type directlyimplements
.ImmutableList<Parameter>
Invokable. getParameters()
Returns all declared parameters of thisInvokable
.(package private) static ImmutableList<java.net.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(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)
-
Uses of ImmutableList in com.google.common.testing
Fields in com.google.common.testing declared as ImmutableList Modifier and Type Field Description private static ImmutableList<java.lang.String>
AbstractPackageSanityTests. EQUALS_TEST_METHOD_NAMES
private ImmutableList<Invokable<?,?>>
ClassSanityTester.FactoryMethodReturnValueTester. factories
private static ImmutableList<java.lang.String>
AbstractPackageSanityTests. NULL_TEST_METHOD_NAMES
private ImmutableList<java.lang.Class<?>>
NullPointerTester.Signature. parameterTypes
private static ImmutableList<java.lang.String>
AbstractPackageSanityTests. SERIALIZABLE_TEST_METHOD_NAMES
Fields in com.google.common.testing with type parameters of type ImmutableList Modifier and Type Field Description private java.util.List<ImmutableList<T>>
RelationshipTester. groups
Methods in com.google.common.testing that return ImmutableList Modifier and Type Method Description 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<java.lang.reflect.Method>
NullPointerTester. getInstanceMethodsToTest(java.lang.Class<?> c, NullPointerTester.Visibility minimalVisibility)
private ImmutableList<java.lang.reflect.Method>
NullPointerTester.Visibility. getVisibleMethods(java.lang.Class<?> cls)
Constructors in com.google.common.testing with parameters of type ImmutableList Constructor Description FactoryMethodReturnValueTester(java.lang.Class<?> declaringClass, ImmutableList<Invokable<?,?>> factories, java.lang.String factoryMethodsDescription)
Signature(java.lang.String name, ImmutableList<java.lang.Class<?>> parameterTypes)
-
Uses of ImmutableList in com.google.common.util.concurrent
Fields in com.google.common.util.concurrent declared as ImmutableList Modifier and Type Field Description private ImmutableList<ClosingFuture<?>>
ClosingFuture.Peeker. futures
private ImmutableList<ListenableFuture<? extends V>>
Futures.FutureCombiner. futures
protected ImmutableList<ClosingFuture<?>>
ClosingFuture.Combiner. inputs
private ImmutableList<Service>
ServiceManager. services
Methods in com.google.common.util.concurrent that return ImmutableList Modifier and Type Method 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 ImmutableList<FluentFuture<?>>
ClosingFuture.Combiner. inputFutures()
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.Methods in com.google.common.util.concurrent with parameters of type ImmutableList Modifier and Type Method Description private void
Futures.InCompletionOrderState. recordInputCompletion(ImmutableList<AbstractFuture<T>> delegates, int inputFutureIndex)
Constructors in com.google.common.util.concurrent with parameters of type ImmutableList Constructor Description FutureCombiner(boolean allMustSucceed, ImmutableList<ListenableFuture<? extends V>> futures)
Peeker(ImmutableList<ClosingFuture<?>> futures)
-