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

public Interface ImmutableLongList

extends ImmutableLongCollection, LongList
Imports
org.eclipse.collections.api.LongIterable, org.eclipse.collections.api.block.function.primitive.LongIntToObjectFunction, .LongToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongIntPredicate, .LongPredicate, org.eclipse.collections.api.block.procedure.primitive.LongProcedure, org.eclipse.collections.api.collection.primitive.ImmutableLongCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.LongLongPair, .LongObjectPair

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(LongToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableLongCollection.collect, org.eclipse.collections.api.list.primitive.LongList.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(LongIntToObjectFunction<? extends V> function)

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

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

public ImmutableLongList
public ImmutableLongList
public ImmutableLongList
public ImmutableLongList
public ImmutableLongList
public ImmutableLongList
reject(LongPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableLongCollection.reject, org.eclipse.collections.api.list.primitive.LongList.reject.

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

public default ImmutableLongList
rejectWithIndex(LongIntPredicate predicate)

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

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

public ImmutableLongList
select(LongPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableLongCollection.select, org.eclipse.collections.api.list.primitive.LongList.select.

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

public default ImmutableLongList
selectWithIndex(LongIntPredicate predicate)

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

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

public ImmutableLongList
public default ImmutableLongList
public ImmutableLongList
public default <T> ImmutableList<LongObjectPair<T>>
zip(Iterable<T> iterable)

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

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

public default ImmutableList<LongLongPair>
zipLong(LongIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.LongList.zipLong.

Returns an ImmutableList formed from this ImmutableLongList and another LongList by combining corresponding elements in pairs.

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

Method Detail

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

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableLongCollection.collect, org.eclipse.collections.api.list.primitive.LongList.collect.

Doc from org.eclipse.collections.api.LongIterable.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(LongIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.LongList.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 ImmutableLongList distinct()

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

Annotations
@Override
Since
6.0.
newWithback to summary
public ImmutableLongList newWith(long element)

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

Annotations
@Override
newWithAllback to summary
public ImmutableLongList newWithAll(LongIterable elements)

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

Annotations
@Override
newWithoutback to summary
public ImmutableLongList newWithout(long element)

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

Annotations
@Override
newWithoutAllback to summary
public ImmutableLongList newWithoutAll(LongIterable elements)

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

Annotations
@Override
rejectback to summary
public ImmutableLongList reject(LongPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableLongCollection.reject, org.eclipse.collections.api.list.primitive.LongList.reject.

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

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

Annotations
@Override
rejectWithIndexback to summary
public default ImmutableLongList rejectWithIndex(LongIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ImmutableLongList select(LongPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableLongCollection.select, org.eclipse.collections.api.list.primitive.LongList.select.

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

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

Annotations
@Override
selectWithIndexback to summary
public default ImmutableLongList selectWithIndex(LongIntPredicate predicate)

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

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

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

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

Annotations
@Override
tapback to summary
public default ImmutableLongList tap(LongProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.ImmutableLongCollection.tap, org.eclipse.collections.api.list.primitive.LongList.tap.

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

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

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

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

Returns an ImmutableList formed from this ImmutableLongList 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.
zipLongback to summary
public default ImmutableList<LongLongPair> zipLong(LongIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.LongList.zipLong.

Returns an ImmutableList formed from this ImmutableLongList and another LongList by combining corresponding elements in pairs. If one of the two LongLists is longer than the other, its remaining elements are ignored.

Since
9.1.