public interface ImmutableIntList extends ImmutableIntCollection, IntList
| Modifier and Type | Method and 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. |
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliterator, toImmutableasReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOfallSatisfy, 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, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableIntList select(IntPredicate predicate)
IntIterableselect in interface ImmutableIntCollectionselect in interface IntIterableselect in interface IntListselect in interface OrderedIntIterableselect in interface ReversibleIntIterableImmutableIntList reject(IntPredicate predicate)
IntIterablereject in interface ImmutableIntCollectionreject in interface IntIterablereject in interface IntListreject in interface OrderedIntIterablereject in interface ReversibleIntIterabledefault ImmutableIntList tap(IntProcedure procedure)
tap in interface ImmutableIntCollectiontap in interface IntIterabletap in interface IntList<V> ImmutableList<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface ImmutableIntCollectioncollect in interface IntIterablecollect in interface IntListcollect in interface OrderedIntIterablecollect in interface ReversibleIntIterabledefault <V> ImmutableList<V> collectWithIndex(IntIntToObjectFunction<? extends V> function)
collectWithIndex in interface IntListcollectWithIndex in interface OrderedIntIterablecollectWithIndex in interface ReversibleIntIterableImmutableIntList newWith(int element)
newWith in interface ImmutableIntCollectionImmutableIntList newWithout(int element)
newWithout in interface ImmutableIntCollectionImmutableIntList newWithAll(IntIterable elements)
newWithAll in interface ImmutableIntCollectionImmutableIntList newWithoutAll(IntIterable elements)
newWithoutAll in interface ImmutableIntCollectionImmutableIntList toReversed()
toReversed in interface IntListtoReversed in interface ReversibleIntIterableImmutableIntList distinct()
distinct in interface IntListdistinct in interface ReversibleIntIterableImmutableIntList subList(int fromIndex, int toIndex)
subList in interface IntListList.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 IntLists 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–2020. All rights reserved.