Interface ImmutableIntList
- All Superinterfaces:
ImmutableIntCollection
,IntIterable
,IntList
,OrderedIntIterable
,PrimitiveIterable
,ReversibleIntIterable
- All Known Implementing Classes:
CodePointAdapter
,CodePointList
,IntInterval
public interface ImmutableIntList extends ImmutableIntCollection, IntList
This file was automatically generated from template file immutablePrimitiveList.stg.
- Since:
- 3.0.
-
Method Summary
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 anImmutableList
formed from thisImmutableIntList
and aListIterable
by combining corresponding elements in pairs.default ImmutableList<IntIntPair>
zipInt(IntIterable iterable)
Returns anImmutableList
formed from thisImmutableIntList
and anotherIntList
by combining corresponding elements in pairs.Methods inherited from interface org.eclipse.collections.api.IntIterable
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, toArray, toBag, toList, toSet, toSortedArray, toSortedList
Methods inherited from interface org.eclipse.collections.api.list.primitive.IntList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliterator, toImmutable
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedIntIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleIntIterable
asReversed, getLast, injectIntoWithIndex
-
Method Details
-
select
Description copied from interface:IntIterable
Returns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.- Specified by:
select
in interfaceImmutableIntCollection
- Specified by:
select
in interfaceIntIterable
- Specified by:
select
in interfaceIntList
- Specified by:
select
in interfaceOrderedIntIterable
- Specified by:
select
in interfaceReversibleIntIterable
-
reject
Description copied from interface:IntIterable
Returns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.- Specified by:
reject
in interfaceImmutableIntCollection
- Specified by:
reject
in interfaceIntIterable
- Specified by:
reject
in interfaceIntList
- Specified by:
reject
in interfaceOrderedIntIterable
- Specified by:
reject
in interfaceReversibleIntIterable
-
tap
- Specified by:
tap
in interfaceImmutableIntCollection
- Specified by:
tap
in interfaceIntIterable
- Specified by:
tap
in interfaceIntList
- Since:
- 9.0.
-
collect
Description copied from interface:IntIterable
Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collect
in interfaceImmutableIntCollection
- Specified by:
collect
in interfaceIntIterable
- Specified by:
collect
in interfaceIntList
- Specified by:
collect
in interfaceOrderedIntIterable
- Specified by:
collect
in interfaceReversibleIntIterable
-
collectWithIndex
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceIntList
- Specified by:
collectWithIndex
in interfaceOrderedIntIterable
- Specified by:
collectWithIndex
in interfaceReversibleIntIterable
- Since:
- 9.1.
-
newWith
- Specified by:
newWith
in interfaceImmutableIntCollection
-
newWithout
- Specified by:
newWithout
in interfaceImmutableIntCollection
-
newWithAll
- Specified by:
newWithAll
in interfaceImmutableIntCollection
-
newWithoutAll
- Specified by:
newWithoutAll
in interfaceImmutableIntCollection
-
toReversed
ImmutableIntList toReversed()- Specified by:
toReversed
in interfaceIntList
- Specified by:
toReversed
in interfaceReversibleIntIterable
-
distinct
ImmutableIntList distinct()- Specified by:
distinct
in interfaceIntList
- Specified by:
distinct
in interfaceReversibleIntIterable
- Since:
- 6.0.
-
subList
- Specified by:
subList
in interfaceIntList
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipInt
Returns anImmutableList
formed from thisImmutableIntList
and anotherIntList
by combining corresponding elements in pairs. If one of the twoIntList
s is longer than the other, its remaining elements are ignored. -
zip
Returns anImmutableList
formed from thisImmutableIntList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.
-