Top Description Fields Constructors Methods
org.eclipse.collections.impl.list.mutable.primitive

public Class SynchronizedDoubleList

extends AbstractSynchronizedDoubleCollection
implements MutableDoubleList
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.list.primitive.MutableDoubleList, org.eclipse.collections.api.list.primitive.DoubleList, org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable, org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable, org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection
Imports
java.util.Collection, .Comparator, .Random, .Spliterator, org.eclipse.collections.api.DoubleIterable, .LazyDoubleIterable, org.eclipse.collections.api.block.comparator.primitive.DoubleComparator, org.eclipse.collections.api.block.function.primitive.DoubleIntToObjectFunction, .DoubleToObjectFunction, .ObjectDoubleIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoubleIntPredicate, .DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleDoubleProcedure, .DoubleIntProcedure, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.list.primitive.DoubleList, .ImmutableDoubleList, .MutableDoubleList, org.eclipse.collections.api.stack.primitive.MutableDoubleStack, org.eclipse.collections.api.tuple.primitive.DoubleDoublePair, .DoubleObjectPair, org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection, org.eclipse.collections.impl.factory.primitive.DoubleLists, .DoubleStacks, org.eclipse.collections.impl.lazy.primitive.LazyDoubleIterableAdapter, .ReverseDoubleIterable, org.eclipse.collections.impl.list.mutable.SynchronizedMutableList

A synchronized view of a MutableDoubleList. It is imperative that the user manually synchronize on the on the collection when iterating over it using an iterator or stream.

This file was automatically generated from template file synchronizedPrimitiveList.stg.

Since
3.1.
See Also
MutableDoubleList#asSynchronized(), MutableList#asSynchronized()

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public void
public LazyDoubleIterable
public LazyDoubleIterable
public MutableDoubleList
public MutableDoubleList
public int
public MutableList<Double>
public <V> MutableList<V>
public <V> MutableList<V>
collectWithIndex(DoubleIntToObjectFunction<? extends V> function)

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

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

public <V, R extends Collection<V>> R
collectWithIndex(DoubleIntToObjectFunction<? extends V> function, R target)

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

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

public MutableDoubleList
public double
public boolean
public void
forEachInBoth(DoubleList other, DoubleDoubleProcedure procedure)

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

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

public void
public double
public double
public double
private MutableDoubleList
public int
public int
public <T> T
public int
public MutableDoubleList
public MutableDoubleList
public MutableDoubleList
rejectWithIndex(DoubleIntPredicate predicate)

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

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

public <R extends MutableDoubleCollection> R
rejectWithIndex(DoubleIntPredicate predicate, R target)

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

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

public double
public MutableDoubleList
public MutableDoubleList
public MutableDoubleList
selectWithIndex(DoubleIntPredicate predicate)

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

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

public <R extends MutableDoubleCollection> R
selectWithIndex(DoubleIntPredicate predicate, R target)

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

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

public double
public MutableDoubleList
shuffleThis()

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.shuffleThis.

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

public MutableDoubleList
shuffleThis(Random rnd)

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.shuffleThis.

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

public MutableDoubleList
sortThis()

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThis.

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

public MutableDoubleList
sortThis(DoubleComparator comparator)

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThis.

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

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

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThisBy.

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

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

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThisBy.

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

public Spliterator.OfDouble
spliterator()

Implements org.eclipse.collections.api.list.primitive.DoubleList.spliterator.

This function needs to be synchronized manually

public MutableDoubleList
public ImmutableDoubleList
public MutableDoubleList
public MutableDoubleStack
toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.toStack.

Converts the collection to a DoubleStack.

public SynchronizedDoubleList
public SynchronizedDoubleList
public SynchronizedDoubleList
public SynchronizedDoubleList
public <T> MutableList<DoubleObjectPair<T>>
zip(Iterable<T> iterable)

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

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

public MutableList<DoubleDoublePair>
zipDouble(DoubleIterable iterable)

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

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

Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringaveragechunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNonedoubleIteratoreachgetDoubleCollectiongetLockinjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.serialVersionUID.

Constructor Detail

SynchronizedDoubleListback to summary
public SynchronizedDoubleList(MutableDoubleList list)
SynchronizedDoubleListback to summary
public SynchronizedDoubleList(MutableDoubleList list, Object newLock)

Method Detail

addAllAtIndexback to summary
public boolean addAllAtIndex(int index, double... source)

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.addAllAtIndex.

Annotations
@Override
addAllAtIndexback to summary
public boolean addAllAtIndex(int index, DoubleIterable source)

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.addAllAtIndex.

Annotations
@Override
addAtIndexback to summary
public void addAtIndex(int index, double element)

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.addAtIndex.

Annotations
@Override
asLazyback to summary
public LazyDoubleIterable asLazy()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.asLazy.

Implements org.eclipse.collections.api.DoubleIterable.asLazy.

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

Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.

Annotations
@Override
asReversedback to summary
public LazyDoubleIterable asReversed()

Implements org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.asReversed.

Annotations
@Override
asSynchronizedback to summary
public MutableDoubleList asSynchronized()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.asSynchronized.

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableDoubleList asUnmodifiable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.asUnmodifiable.

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.asUnmodifiable.

Annotations
@Override
binarySearchback to summary
public int binarySearch(double value)

Implements org.eclipse.collections.api.list.primitive.DoubleList.binarySearch.

Annotations
@Override
boxedback to summary
public MutableList<Double> boxed()

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.boxed.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.collect.

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

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.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.
collectWithIndexback to summary
public <V, R extends Collection<V>> R collectWithIndex(DoubleIntToObjectFunction<? extends V> function, R target)

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

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

Since
9.1.
distinctback to summary
public MutableDoubleList distinct()

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.distinct.

Annotations
@Override
Since
6.0.
dotProductback to summary
public double dotProduct(DoubleList list)

Implements org.eclipse.collections.api.list.primitive.DoubleList.dotProduct.

Annotations
@Override
equalsback to summary
public boolean equals(Object otherList)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.list.primitive.DoubleList.equals.

Doc from org.eclipse.collections.api.list.primitive.DoubleList.equals.

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

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

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

Doc from org.eclipse.collections.api.list.primitive.DoubleList.forEachInBoth.

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

Annotations
@Override
forEachWithIndexback to summary
public void forEachWithIndex(DoubleIntProcedure procedure)

Implements org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.forEachWithIndex.

Annotations
@Override
getback to summary
public double get(int index)

Implements org.eclipse.collections.api.list.primitive.DoubleList.get.

Annotations
@Override
getFirstback to summary
public double getFirst()

Implements org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.getFirst.

Annotations
@Override
getLastback to summary
public double getLast()

Implements org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.getLast.

Annotations
@Override
getMutableDoubleListback to summary
private MutableDoubleList getMutableDoubleList()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.eclipse.collections.api.list.primitive.DoubleList.hashCode.

Doc from org.eclipse.collections.api.list.primitive.DoubleList.hashCode.

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

Annotations
@Override
indexOfback to summary
public int indexOf(double value)

Implements org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.indexOf.

Annotations
@Override
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectDoubleIntToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable.injectIntoWithIndex.

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(double value)

Implements org.eclipse.collections.api.list.primitive.DoubleList.lastIndexOf.

Annotations
@Override
newEmptyback to summary
public MutableDoubleList newEmpty()

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.newEmpty, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.newEmpty.

Doc from org.eclipse.collections.api.list.primitive.MutableDoubleList.newEmpty.

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

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.reject.

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

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

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

Since
11.1.
rejectWithIndexback to summary
public <R extends MutableDoubleCollection> R rejectWithIndex(DoubleIntPredicate predicate, R target)

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

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

Since
11.1.
removeAtIndexback to summary
public double removeAtIndex(int index)

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.removeAtIndex.

Annotations
@Override
reverseThisback to summary
public MutableDoubleList reverseThis()

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.reverseThis.

Annotations
@Override
selectback to summary
public MutableDoubleList select(DoublePredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.select.

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

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

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

Since
11.1.
selectWithIndexback to summary
public <R extends MutableDoubleCollection> R selectWithIndex(DoubleIntPredicate predicate, R target)

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

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

Since
11.1.
setback to summary
public double set(int index, double element)

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.set.

Annotations
@Override
shuffleThisback to summary
public MutableDoubleList shuffleThis()

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.shuffleThis.

Doc from org.eclipse.collections.api.list.primitive.MutableDoubleList.shuffleThis.

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

Annotations
@Override
shuffleThisback to summary
public MutableDoubleList shuffleThis(Random rnd)

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.shuffleThis.

Doc from org.eclipse.collections.api.list.primitive.MutableDoubleList.shuffleThis.

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.

Annotations
@Override
sortThisback to summary
public MutableDoubleList sortThis()

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThis.

Doc from org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThis.

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

Annotations
@Override
sortThisback to summary
public MutableDoubleList sortThis(DoubleComparator comparator)

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThis.

Doc from org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThis.

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

Annotations
@Override
sortThisByback to summary
public <T> MutableDoubleList sortThisBy(DoubleToObjectFunction<T> function)

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThisBy.

Doc from org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThisBy.

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

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

Overrides default org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThisBy.

Doc from org.eclipse.collections.api.list.primitive.MutableDoubleList.sortThisBy.

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

Annotations
@Override
spliteratorback to summary
public Spliterator.OfDouble spliterator()

Implements org.eclipse.collections.api.list.primitive.DoubleList.spliterator.

This function needs to be synchronized manually

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

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.subList.

Annotations
@Override
toImmutableback to summary
public ImmutableDoubleList toImmutable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.toImmutable.

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.toImmutable, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.toImmutable.

Doc from org.eclipse.collections.api.list.primitive.MutableDoubleList.toImmutable.

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableDoubleList toReversed()

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.toReversed.

Annotations
@Override
toStackback to summary
public MutableDoubleStack toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.toStack.

Doc from org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable.toStack.

Converts the collection to a DoubleStack.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.with.

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.with, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.with.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.withAll.

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.withAll, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.withAll.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.without.

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.without, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.without.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection.withoutAll.

Implements org.eclipse.collections.api.list.primitive.MutableDoubleList.withoutAll, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.withoutAll.

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

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

Doc from org.eclipse.collections.api.list.primitive.MutableDoubleList.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 MutableList<DoubleDoublePair> zipDouble(DoubleIterable iterable)

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

Doc from org.eclipse.collections.api.list.primitive.MutableDoubleList.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.