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

public Interface DoubleList

extends ReversibleDoubleIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.ImmutableDoubleList, org.eclipse.collections.api.list.primitive.MutableDoubleList
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.DoubleDoubleProcedure, .DoubleProcedure, org.eclipse.collections.api.list.ListIterable, org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable, org.eclipse.collections.api.tuple.primitive.DoubleDoublePair, .DoubleObjectPair, java.util.Spliterator, .Objects, java.util.stream.StreamSupport, .DoubleStream

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

Method Summary

Modifier and TypeMethod and Description
public int
binarySearch(double value)

public <V> ListIterable<V>
collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.collect.

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

public default <V> ListIterable<V>
collectWithIndex(DoubleIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.collectWithIndex.

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

public DoubleList
public double
public boolean
equals(Object o)

Follows the same general contract as java.util.List#equals(Object).

public default void
forEachInBoth(DoubleList other, DoubleDoubleProcedure procedure)

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

public double
get(int index)

public int
hashCode()

Follows the same general contract as java.util.List#hashCode().

public int
lastIndexOf(double value)

public default DoubleStream
public default DoubleStream
public DoubleList
reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.reject.

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

public default DoubleList
rejectWithIndex(DoubleIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.rejectWithIndex.

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

public DoubleList
select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.select.

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

public default DoubleList
selectWithIndex(DoubleIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.selectWithIndex.

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

public Spliterator.OfDouble
public DoubleList
subList(int fromIndex, int toIndex)

public default DoubleList
public ImmutableDoubleList
toImmutable()

Returns an immutable copy of this list.

public DoubleList
public default <T> ListIterable<DoubleObjectPair<T>>
zip(Iterable<T> iterable)

Returns a ListIterable formed from this DoubleList and a ListIterable by combining corresponding elements in pairs.

public default ListIterable<DoubleDoublePair>
zipDouble(DoubleIterable iterable)

Returns a ListIterable formed from this DoubleList and another DoubleList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable:
asReversedgetLastinjectIntoWithIndex

Method Detail

binarySearchback to summary
public int binarySearch(double value)
collectback to summary
public <V> ListIterable<V> collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.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> ListIterable<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.collectWithIndex.

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

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

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.distinct.

Annotations
@Override
Since
6.0.
dotProductback to summary
public double dotProduct(DoubleList list)
equalsback to summary
public boolean equals(Object o)

Follows the same general contract as java.util.List#equals(Object).

Annotations
@Override
forEachInBothback to summary
public default void forEachInBoth(DoubleList other, DoubleDoubleProcedure procedure)

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

Since
11.1
getback to summary
public double get(int index)
hashCodeback to summary
public int hashCode()

Follows the same general contract as java.util.List#hashCode().

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(double value)
primitiveParallelStreamback to summary
public default DoubleStream primitiveParallelStream()
Since
10.0
primitiveStreamback to summary
public default DoubleStream primitiveStream()
Since
10.0
rejectback to summary
public DoubleList reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.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 DoubleList rejectWithIndex(DoubleIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.rejectWithIndex.

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

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

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.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 DoubleList selectWithIndex(DoubleIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.selectWithIndex.

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

Annotations
@Override
Since
11.1.
spliteratorback to summary
public Spliterator.OfDouble spliterator()
Since
10.0
subListback to summary
public DoubleList subList(int fromIndex, int toIndex)
Since
5.0.
See Also
java.util.List#subList(int fromIndex, int toIndex)
tapback to summary
public default DoubleList tap(DoubleProcedure procedure)

Overrides default org.eclipse.collections.api.DoubleIterable.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableDoubleList toImmutable()

Returns an immutable copy of this list. If the list is immutable, it returns itself.

toReversedback to summary
public DoubleList toReversed()

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.toReversed.

Annotations
@Override
Since
5.0.
zipback to summary
public default <T> ListIterable<DoubleObjectPair<T>> zip(Iterable<T> iterable)

Returns a ListIterable formed from this DoubleList 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 ListIterable<DoubleDoublePair> zipDouble(DoubleIterable iterable)

Returns a ListIterable formed from this DoubleList 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.