| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int index, T element)
Implements java. Inserts the specified element at the specified position in this list (optional operation). |
| public boolean | addAll(int index, Collection<? extends T> collection)
Implements java. Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
| public void | appendString(Appendable appendable, String start, String separator, String end)
Overrides org. Implements org. Prints a string representation of this collection onto the given |
| public ParallelListIterable | asParallel(ExecutorService executorService, int batchSize)
Implements org. Returns a parallel iterable of this ListIterable. |
| public ReverseIterable | asReversed()
Overrides default org. Returns a reversed view of this ReversibleIterable. |
| public List | |
| public RichIterable | chunk(int size)
Overrides org. Implements org. Partitions elements in fixed size chunks. |
| public <V> ImmutableList | collect(Function<? super T, ? extends V> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection. |
| public ImmutableBooleanList | collectBoolean(BooleanFunction<? super T> booleanFunction)
Implements org. Returns a new primitive |
| public ImmutableByteList | collectByte(ByteFunction<? super T> byteFunction)
Implements org. Returns a new primitive |
| public ImmutableCharList | collectChar(CharFunction<? super T> charFunction)
Implements org. Returns a new primitive |
| public ImmutableDoubleList | collectDouble(DoubleFunction<? super T> doubleFunction)
Implements org. Returns a new primitive |
| public ImmutableFloatList | collectFloat(FloatFunction<? super T> floatFunction)
Implements org. Returns a new primitive |
| public <V> ImmutableList | collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function)
Implements org. Returns a new collection with the results of applying the specified function on each element of the source collection, but only for those elements which return true upon evaluation of the predicate. |
| public ImmutableIntList | collectInt(IntFunction<? super T> intFunction)
Implements org. Returns a new primitive |
| public ImmutableLongList | collectLong(LongFunction<? super T> longFunction)
Implements org. Returns a new primitive |
| public ImmutableShortList | collectShort(ShortFunction<? super T> shortFunction)
Implements org. Returns a new primitive |
| public <P, V> ImmutableList | collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
Implements org. Same as |
| public <P, V, R extends Collection | collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter, R target)
Overrides org. Implements org. Same as collectWith but with a targetCollection parameter to gather the results. |
| public <S> boolean | corresponds(OrderedIterable<S> other, Predicate2<? super T, ? super S> predicate)
Implements org. Returns true if both OrderedIterables have the same length
and |
| public int | count(Predicate<? super T> predicate)
Overrides org. Implements org. Return the total number of elements that answer true to the specified predicate. |
| public int | detectIndex(Predicate<? super T> predicate)
Implements org. Returns the index of the first element of the |
| public int | detectLastIndex(Predicate<? super T> predicate)
Implements org. Returns the index of the last element of the |
| public ImmutableList | distinct()
Implements org. Returns a new |
| public ImmutableList | distinct(HashingStrategy<? super T> hashingStrategy)
Implements org. Returns a new |
| public <V> ImmutableList | distinctBy(Function<? super T, ? extends V> function)
Implements org. Returns a new |
| public ImmutableList | drop(int count)
Implements org. Returns an iterable after skipping the first |
| public ImmutableList | dropWhile(Predicate<? super T> predicate)
Implements org. Returns the final elements that do not satisfy the Predicate. |
| public boolean | equals(Object that)
Overrides java. Implements org. Compares the specified object with this list for equality. |
| public <V> ImmutableList | flatCollect(Function<? super T, ? extends Iterable<V>> function)
Implements org.
|
| public <V, R extends Collection | flatCollect(Function<? super T, ? extends Iterable<V>> function, R target)
Overrides org. Implements org. Same as flatCollect, only the results are collected into the target collection. |
| public void | forEach(int from, int to, Procedure<? super T> procedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public <P> void | forEachWith(Procedure2<? super T, ? super P> procedure, P parameter)
Overrides org. Implements org. The procedure2 is evaluated for each element in the iterable with the specified parameter provided as the second argument. |
| public void | forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
Overrides org. Implements org. Iterates over the iterable passing each element and the current relative int index to the specified instance of ObjectIntProcedure. |
| public void | forEachWithIndex(int from, int to, ObjectIntProcedure<? super T> objectIntProcedure)
Implements org. Iterates over the section of the iterable covered by the specified inclusive indexes. |
| public T | getFirst()
Overrides default java. Implements org. Gets the first element of this collection. |
| public T | getLast()
Overrides default java. Implements org. Gets the last element of this collection. |
| public <V> ImmutableListMultimap | groupBy(Function<? super T, ? extends V> function)
Implements org. For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable. |
| public <V, R extends MutableMultimap | groupBy(Function<? super T, ? extends V> function, R target)
Overrides org. Implements org. Same as |
| public <V> ImmutableListMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function)
Implements org. Similar to |
| public <V, R extends MutableMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function, R target)
Overrides org. Implements org. Same as |
| public int | hashCode()
Overrides java. Implements org. Returns the hash code value for this list. |
| public int | indexOf(Object object)
Overrides default org. Implements java. Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public <IV> IV | injectInto(IV injectedValue, Function2<? super IV, ? super T, ? extends IV> function)
Overrides org. Implements org. Returns the final result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public int | injectInto(int injectedValue, IntObjectToIntFunction<? super T> function)
Overrides org. Implements org. Returns the final int result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public long | injectInto(long injectedValue, LongObjectToLongFunction<? super T> function)
Overrides org. Implements org. Returns the final long result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public double | injectInto(double injectedValue, DoubleObjectToDoubleFunction<? super T> function)
Overrides org. Implements org. Returns the final double result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public float | injectInto(float injectedValue, FloatObjectToFloatFunction<? super T> function)
Overrides org. Implements org. Returns the final float result of evaluating function using each element of the iterable and the previous evaluation result as the parameters. |
| public Iterator | iterator()
Implements java. Returns an iterator over the elements in this list in proper sequence. |
| public int | lastIndexOf(Object object)
Implements org. Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public ListIterator | listIterator()
Implements org. Returns a list iterator over the elements in this list (in proper sequence). |
| public ListIterator | listIterator(int index)
Implements org. Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list. |
| public T | max(Comparator<? super T> comparator)
Overrides org. Implements org. Returns the maximum element out of this container based on the comparator. |
| public T | max()
Overrides org. Implements org. Returns the maximum element out of this container based on the natural order. |
| public <V extends Comparable | maxBy(Function<? super T, ? extends V> function)
Overrides org. Implements org. Returns the maximum elements out of this container based on the natural order of the attribute returned by Function. |
| public T | min(Comparator<? super T> comparator)
Overrides org. Implements org. Returns the minimum element out of this container based on the comparator. |
| public T | min()
Overrides org. Implements org. Returns the minimum element out of this container based on the natural order. |
| public <V extends Comparable | minBy(Function<? super T, ? extends V> function)
Overrides org. Implements org. Returns the minimum elements out of this container based on the natural order of the attribute returned by Function. |
| protected MutableCollection | newMutable(int size)
Implements abstract org.
|
| public ImmutableList | newWithAll(Iterable<? extends T> elements)
Implements org. This method is similar to the |
| public ImmutableList | newWithout(T element)
Implements org. This method is similar to the |
| public ImmutableList | newWithoutAll(Iterable<? extends T> elements)
Implements org. This method is similar to the |
| public PartitionImmutableList | partition(Predicate<? super T> predicate)
Implements org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public PartitionImmutableList | partitionWhile(Predicate<? super T> predicate)
Implements org. Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements. |
| public <P> PartitionImmutableList | partitionWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| private boolean | |
| protected boolean | |
| public ImmutableList | reject(Predicate<? super T> predicate)
Implements org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> ImmutableList | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Similar to |
| public <P, R extends Collection | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target)
Overrides org. Implements org. Similar to |
| public T | remove(int index)
Implements java. Removes the element at the specified position in this list (optional operation). |
| public void | replaceAll(UnaryOperator<T> operator)
Overrides default java. Replaces each element of this list with the result of applying the operator to that element (optional operation). |
| public ImmutableList | select(Predicate<? super T> predicate)
Implements org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public <S> ImmutableList | selectInstancesOf(Class<S> clazz)
Implements org. Returns all elements of the source collection that are instances of the Class |
| public <P> ImmutableList | selectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Implements org. Similar to |
| public <P, R extends Collection | selectWith(Predicate2<? super T, ? super P> predicate, P parameter, R target)
Overrides org. Implements org. Similar to |
| public T | set(int index, T element)
Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| public void | sort(Comparator<? super T> c)
Overrides default java. Sorts this list according to the order induced by the specified
|
| public AbstractImmutableList. | subList(int fromIndex, int toIndex)
Implements org. Returns a view of the portion of this list between the specified
|
| public double | sumOfDouble(DoubleFunction<? super T> function)
Overrides org. Implements org. Returns the final double result of evaluating function for each element of the iterable and adding the results together. |
| public double | sumOfFloat(FloatFunction<? super T> function)
Overrides org. Implements org. Returns the final double result of evaluating function for each element of the iterable and adding the results together. |
| public long | sumOfInt(IntFunction<? super T> function)
Overrides org. Implements org. Returns the final long result of evaluating function for each element of the iterable and adding the results together. |
| public long | sumOfLong(LongFunction<? super T> function)
Overrides org. Implements org. Returns the final long result of evaluating function for each element of the iterable and adding the results together. |
| public ImmutableList | take(int count)
Implements org. Returns the first |
| public ImmutableList | takeWhile(Predicate<? super T> predicate)
Implements org. Returns the initial elements that satisfy the Predicate. |
| public ImmutableList | tap(Procedure<? super T> procedure)
Implements org. Executes the Procedure for each element in the iterable and returns |
| public ImmutableList | toImmutable()
Implements org. Converts the ListIterable to an immutable implementation. |
| public ImmutableList | toReversed()
Implements org. Returns a new ReversibleIterable in reverse order. |
| public <S> ImmutableList | zip(Iterable<S> that)
Implements org. Returns a |
| public ImmutableList | zipWithIndex()
Implements org. Zips this |