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

public Interface MutableDoubleList

extends MutableDoubleCollection, DoubleList
Imports
java.util.Comparator, .Random, org.eclipse.collections.api.block.comparator.primitive.DoubleComparator, 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.MutableDoubleCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.DoubleDoublePair, .DoubleObjectPair

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

Method Summary

Modifier and TypeMethod and Description
public boolean
addAllAtIndex(int index, double... source)

public boolean
addAllAtIndex(int index, DoubleIterable source)

public void
addAtIndex(int index, double element)

public MutableDoubleList
public MutableDoubleList
public MutableList<Double>
public <V> MutableList<V>
collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.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> MutableList<V>
collectWithIndex(DoubleIntToObjectFunction<? extends V> function)

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

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

public MutableDoubleList
public default MutableDoubleList
newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.newEmpty.

Creates a new empty mutable version of the same List type.

public MutableDoubleList
reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.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 MutableDoubleList
rejectWithIndex(DoubleIntPredicate predicate)

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

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

public double
removeAtIndex(int index)

public MutableDoubleList
public MutableDoubleList
select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.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 MutableDoubleList
selectWithIndex(DoubleIntPredicate predicate)

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

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

public double
set(int index, double element)

public default MutableDoubleList
shuffleThis()

Randomly permutes this list mutating its contents and returns the same list (this).

public default MutableDoubleList
shuffleThis(Random rnd)

Randomly permutes this list mutating its contents and returns the same list (this).

public MutableDoubleList
sortThis()

Sorts this list mutating its contents and returns the same mutable list (this).

public default MutableDoubleList
sortThis(DoubleComparator comparator)

Sorts the internal data structure of this list and returns the list itself as a convenience.

public default <T> MutableDoubleList
sortThisBy(DoubleToObjectFunction<T> function)

Sorts the internal data structure of this list based on the natural order of the key returned by function.

public default <T> MutableDoubleList
sortThisBy(DoubleToObjectFunction<T> function, Comparator<? super T> comparator)

Sorts the internal data structure of this list based on the key returned by function using the provided comparator.

public MutableDoubleList
public default void
swap(int index1, int index2)

public default MutableDoubleList
public ImmutableDoubleList
public MutableDoubleList
public MutableDoubleList
public MutableDoubleList
public MutableDoubleList
public MutableDoubleList
public default <T> MutableList<DoubleObjectPair<T>>
zip(Iterable<T> list)

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

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

public default MutableList<DoubleDoublePair>
zipDouble(DoubleIterable iterable)

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

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

Inherited from org.eclipse.collections.api.collection.primitive.MutableDoubleCollection:
addaddAlladdAllcleardoubleIteratorremoveremoveAllremoveAllremoveIfretainAllretainAll
Inherited from org.eclipse.collections.api.list.primitive.DoubleList:
binarySearchdotProductequalsforEachInBothgethashCodelastIndexOfprimitiveParallelStreamprimitiveStreamspliterator

Method Detail

addAllAtIndexback to summary
public boolean addAllAtIndex(int index, double... source)
addAllAtIndexback to summary
public boolean addAllAtIndex(int index, DoubleIterable source)
addAtIndexback to summary
public void addAtIndex(int index, double element)
asSynchronizedback to summary
public MutableDoubleList asSynchronized()

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableDoubleList asUnmodifiable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableList<Double> boxed()
collectback to summary
public <V> MutableList<V> collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.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.

collectWithIndexback to summary
public default <V> MutableList<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)

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

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

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

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

Annotations
@Override
Since
6.0.
newEmptyback to summary
public default MutableDoubleList newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.newEmpty.

Creates a new empty mutable version of the same List type.

Since
9.2.
rejectback to summary
public MutableDoubleList reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.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 MutableDoubleList rejectWithIndex(DoubleIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
removeAtIndexback to summary
public double removeAtIndex(int index)
reverseThisback to summary
public MutableDoubleList reverseThis()
selectback to summary
public MutableDoubleList select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.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 MutableDoubleList selectWithIndex(DoubleIntPredicate predicate)

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

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

Annotations
@Override
Since
11.1.
setback to summary
public double set(int index, double element)
shuffleThisback to summary
public default MutableDoubleList shuffleThis()

Randomly permutes this list mutating its contents and returns the same list (this). Uses java.util.Random as the source of randomness.

shuffleThisback to summary
public default MutableDoubleList shuffleThis(Random rnd)

Randomly permutes this list mutating its contents and returns the same list (this). Implements the Fisher-Yates shuffle algorithm using the provided source of randomness.

sortThisback to summary
public MutableDoubleList sortThis()

Sorts this list mutating its contents and returns the same mutable list (this).

sortThisback to summary
public default MutableDoubleList sortThis(DoubleComparator comparator)

Sorts the internal data structure of this list and returns the list itself as a convenience.

sortThisByback to summary
public default <T> MutableDoubleList sortThisBy(DoubleToObjectFunction<T> function)

Sorts the internal data structure of this list based on the natural order of the key returned by function.

sortThisByback to summary
public default <T> MutableDoubleList sortThisBy(DoubleToObjectFunction<T> function, Comparator<? super T> comparator)

Sorts the internal data structure of this list based on the key returned by function using the provided comparator.

subListback to summary
public MutableDoubleList subList(int fromIndex, int toIndex)

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

Annotations
@Override
swapback to summary
public default void swap(int index1, int index2)
tapback to summary
public default MutableDoubleList tap(DoubleProcedure procedure)

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

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.toImmutable, org.eclipse.collections.api.list.primitive.DoubleList.toImmutable.

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableDoubleList toReversed()

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

Annotations
@Override
withback to summary
public MutableDoubleList with(double element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.with.

Annotations
@Override
withAllback to summary
public MutableDoubleList withAll(DoubleIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.withAll.

Annotations
@Override
withoutback to summary
public MutableDoubleList without(double element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.without.

Annotations
@Override
withoutAllback to summary
public MutableDoubleList withoutAll(DoubleIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.withoutAll.

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

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

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

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

Returns a MutableList formed from this MutableDoubleList 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.