Top Description Methods
org.eclipse.collections.api.list.primitive

public Interface ImmutableIntList

extends ImmutableIntCollection, IntList
Imports
org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.block.function.primitive.IntIntToObjectFunction, .IntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntIntPredicate, .IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, org.eclipse.collections.api.collection.primitive.ImmutableIntCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.IntIntPair, .IntObjectPair

This file was automatically generated from template file immutablePrimitiveList.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public <V> ImmutableList<V>
collect(IntToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.collect, org.eclipse.collections.api.list.primitive.IntList.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public default <V> ImmutableList<V>
collectWithIndex(IntIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.IntList.collectWithIndex.

Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.

public ImmutableIntList
public ImmutableIntList
public ImmutableIntList
public ImmutableIntList
public ImmutableIntList
public ImmutableIntList
reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.reject, org.eclipse.collections.api.list.primitive.IntList.reject.

Returns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.

public default ImmutableIntList
rejectWithIndex(IntIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.IntList.rejectWithIndex.

Returns a new ImmutableIntList excluding all elements with corresponding indexes matching the specified predicate.

public ImmutableIntList
select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.select, org.eclipse.collections.api.list.primitive.IntList.select.

Returns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.

public default ImmutableIntList
selectWithIndex(IntIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.IntList.selectWithIndex.

Returns a new ImmutableIntList including all elements with corresponding indexes matching the specified predicate.

public ImmutableIntList
public default ImmutableIntList
public ImmutableIntList
public default <T> ImmutableList<IntObjectPair<T>>
zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.IntList.zip.

Returns an ImmutableList formed from this ImmutableIntList and a ListIterable by combining corresponding elements in pairs.

public default ImmutableList<IntIntPair>
zipInt(IntIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.IntList.zipInt.

Returns an ImmutableList formed from this ImmutableIntList and another IntList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.api.list.primitive.IntList:
binarySearchdotProductequalsforEachInBothgethashCodelastIndexOfprimitiveParallelStreamprimitiveStreamspliteratortoImmutable

Method Detail

collectback to summary
public <V> ImmutableList<V> collect(IntToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.collect, org.eclipse.collections.api.list.primitive.IntList.collect.

Doc from org.eclipse.collections.api.IntIterable.collect.

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.

Annotations
@Override
collectWithIndexback to summary
public default <V> ImmutableList<V> collectWithIndex(IntIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.IntList.collectWithIndex.

Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.

Annotations
@Override
Since
9.1.
distinctback to summary
public ImmutableIntList distinct()

Redeclares org.eclipse.collections.api.list.primitive.IntList.distinct.

Annotations
@Override
Since
6.0.
newWithback to summary
public ImmutableIntList newWith(int element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.newWith.

Annotations
@Override
newWithAllback to summary
public ImmutableIntList newWithAll(IntIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.newWithAll.

Annotations
@Override
newWithoutback to summary
public ImmutableIntList newWithout(int element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.newWithout.

Annotations
@Override
newWithoutAllback to summary
public ImmutableIntList newWithoutAll(IntIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.newWithoutAll.

Annotations
@Override
rejectback to summary
public ImmutableIntList reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.reject, org.eclipse.collections.api.list.primitive.IntList.reject.

Doc from org.eclipse.collections.api.IntIterable.reject.

Returns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.

Annotations
@Override
rejectWithIndexback to summary
public default ImmutableIntList rejectWithIndex(IntIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.IntList.rejectWithIndex.

Returns a new ImmutableIntList excluding all elements with corresponding indexes matching the specified predicate.

Annotations
@Override
Since
11.1.
selectback to summary
public ImmutableIntList select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.select, org.eclipse.collections.api.list.primitive.IntList.select.

Doc from org.eclipse.collections.api.IntIterable.select.

Returns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.

Annotations
@Override
selectWithIndexback to summary
public default ImmutableIntList selectWithIndex(IntIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.IntList.selectWithIndex.

Returns a new ImmutableIntList including all elements with corresponding indexes matching the specified predicate.

Annotations
@Override
Since
11.1.
subListback to summary
public ImmutableIntList subList(int fromIndex, int toIndex)

Redeclares org.eclipse.collections.api.list.primitive.IntList.subList.

Annotations
@Override
tapback to summary
public default ImmutableIntList tap(IntProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.tap, org.eclipse.collections.api.list.primitive.IntList.tap.

Annotations
@Override
Since
9.0.
toReversedback to summary
public ImmutableIntList toReversed()

Redeclares org.eclipse.collections.api.list.primitive.IntList.toReversed.

Annotations
@Override
zipback to summary
public default <T> ImmutableList<IntObjectPair<T>> zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.IntList.zip.

Returns an 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.

Since
9.1.
zipIntback to summary
public default ImmutableList<IntIntPair> zipInt(IntIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.IntList.zipInt.

Returns an 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.

Since
9.1.