ImmutableIntCollection
, IntIterable
, IntList
, OrderedIntIterable
, PrimitiveIterable
, ReversibleIntIterable
CodePointAdapter
, CodePointList
, IntInterval
public interface ImmutableIntList extends ImmutableIntCollection, IntList
Modifier and Type | Method | Description |
---|---|---|
<V> ImmutableList<V> |
collect(IntToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default <V> ImmutableList<V> |
collectWithIndex(IntIntToObjectFunction<? extends V> function) |
Returns a new ImmutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
ImmutableIntList |
distinct() |
|
ImmutableIntList |
newWith(int element) |
|
ImmutableIntList |
newWithAll(IntIterable elements) |
|
ImmutableIntList |
newWithout(int element) |
|
ImmutableIntList |
newWithoutAll(IntIterable elements) |
|
ImmutableIntList |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
ImmutableIntList |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
ImmutableIntList |
subList(int fromIndex,
int toIndex) |
|
default ImmutableIntList |
tap(IntProcedure procedure) |
|
ImmutableIntList |
toReversed() |
|
default <T> ImmutableList<IntObjectPair<T>> |
zip(Iterable<T> iterable) |
Returns an
ImmutableList formed from this ImmutableIntList and a ListIterable by
combining corresponding elements in pairs. |
default ImmutableList<IntIntPair> |
zipInt(IntIterable iterable) |
Returns an
ImmutableList formed from this ImmutableIntList and another IntList by
combining corresponding elements in pairs. |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, intIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliterator, toImmutable
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
ImmutableIntList select(IntPredicate predicate)
IntIterable
select
in interface ImmutableIntCollection
select
in interface IntIterable
select
in interface IntList
select
in interface OrderedIntIterable
select
in interface ReversibleIntIterable
ImmutableIntList reject(IntPredicate predicate)
IntIterable
reject
in interface ImmutableIntCollection
reject
in interface IntIterable
reject
in interface IntList
reject
in interface OrderedIntIterable
reject
in interface ReversibleIntIterable
default ImmutableIntList tap(IntProcedure procedure)
tap
in interface ImmutableIntCollection
tap
in interface IntIterable
tap
in interface IntList
<V> ImmutableList<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface ImmutableIntCollection
collect
in interface IntIterable
collect
in interface IntList
collect
in interface OrderedIntIterable
collect
in interface ReversibleIntIterable
default <V> ImmutableList<V> collectWithIndex(IntIntToObjectFunction<? extends V> function)
collectWithIndex
in interface IntList
collectWithIndex
in interface OrderedIntIterable
collectWithIndex
in interface ReversibleIntIterable
ImmutableIntList newWith(int element)
newWith
in interface ImmutableIntCollection
ImmutableIntList newWithout(int element)
newWithout
in interface ImmutableIntCollection
ImmutableIntList newWithAll(IntIterable elements)
newWithAll
in interface ImmutableIntCollection
ImmutableIntList newWithoutAll(IntIterable elements)
newWithoutAll
in interface ImmutableIntCollection
ImmutableIntList toReversed()
toReversed
in interface IntList
toReversed
in interface ReversibleIntIterable
ImmutableIntList distinct()
distinct
in interface IntList
distinct
in interface ReversibleIntIterable
ImmutableIntList subList(int fromIndex, int toIndex)
subList
in interface IntList
List.subList(int fromIndex, int toIndex)
default ImmutableList<IntIntPair> zipInt(IntIterable iterable)
ImmutableList
formed from this ImmutableIntList
and another IntList
by
combining corresponding elements in pairs. If one of the two IntList
s is longer than the other, its
remaining elements are ignored.default <T> ImmutableList<IntObjectPair<T>> zip(Iterable<T> iterable)
ImmutableList
formed from this ImmutableIntList
and a ListIterable
by
combining corresponding elements in pairs. If one of the two Lists is longer than the other, its
remaining elements are ignored.Copyright © 2004–2019. All rights reserved.