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

public Interface ImmutableDoubleList

extends ImmutableDoubleCollection, DoubleList
Imports
org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.block.function.primitive.DoubleIntToObjectFunction, .DoubleToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoubleIntPredicate, .DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection, org.eclipse.collections.api.list.ImmutableList, org.eclipse.collections.api.tuple.primitive.DoubleDoublePair, .DoubleObjectPair

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

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

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

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

public ImmutableDoubleList
public ImmutableDoubleList
public ImmutableDoubleList
public ImmutableDoubleList
public ImmutableDoubleList
public ImmutableDoubleList
reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.reject, org.eclipse.collections.api.list.primitive.DoubleList.reject.

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

public default ImmutableDoubleList
rejectWithIndex(DoubleIntPredicate predicate)

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

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

public ImmutableDoubleList
select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.select, org.eclipse.collections.api.list.primitive.DoubleList.select.

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

public default ImmutableDoubleList
selectWithIndex(DoubleIntPredicate predicate)

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

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

public ImmutableDoubleList
public default ImmutableDoubleList
public ImmutableDoubleList
public default <T> ImmutableList<DoubleObjectPair<T>>
zip(Iterable<T> iterable)

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

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

public default ImmutableList<DoubleDoublePair>
zipDouble(DoubleIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.DoubleList.zipDouble.

Returns an ImmutableList formed from this ImmutableDoubleList and another DoubleList by combining corresponding elements in pairs.

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

Method Detail

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

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.collect, org.eclipse.collections.api.list.primitive.DoubleList.collect.

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

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

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

Annotations
@Override
Since
6.0.
newWithback to summary
public ImmutableDoubleList newWith(double element)

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

Annotations
@Override
newWithAllback to summary
public ImmutableDoubleList newWithAll(DoubleIterable elements)

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

Annotations
@Override
newWithoutback to summary
public ImmutableDoubleList newWithout(double element)

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

Annotations
@Override
newWithoutAllback to summary
public ImmutableDoubleList newWithoutAll(DoubleIterable elements)

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

Annotations
@Override
rejectback to summary
public ImmutableDoubleList reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.reject, org.eclipse.collections.api.list.primitive.DoubleList.reject.

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

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

Annotations
@Override
rejectWithIndexback to summary
public default ImmutableDoubleList rejectWithIndex(DoubleIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
selectback to summary
public ImmutableDoubleList select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.select, org.eclipse.collections.api.list.primitive.DoubleList.select.

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

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

Annotations
@Override
selectWithIndexback to summary
public default ImmutableDoubleList selectWithIndex(DoubleIntPredicate predicate)

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

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

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

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

Annotations
@Override
tapback to summary
public default ImmutableDoubleList tap(DoubleProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.tap, org.eclipse.collections.api.list.primitive.DoubleList.tap.

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

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

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

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

Returns an ImmutableList formed from this ImmutableDoubleList 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.
zipDoubleback to summary
public default ImmutableList<DoubleDoublePair> zipDouble(DoubleIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.DoubleList.zipDouble.

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

Since
9.1.