Serializable
, MutableDoubleCollection
, DoubleIterable
, DoubleList
, MutableDoubleList
, OrderedDoubleIterable
, ReversibleDoubleIterable
, PrimitiveIterable
public class SynchronizedDoubleList extends AbstractSynchronizedDoubleCollection implements MutableDoubleList
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.
MutableDoubleList.asSynchronized()
,
MutableList.asSynchronized()
,
Serialized FormConstructor | Description |
---|---|
SynchronizedDoubleList(MutableDoubleList list) |
|
SynchronizedDoubleList(MutableDoubleList list,
Object newLock) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addAllAtIndex(int index,
double... source) |
|
boolean |
addAllAtIndex(int index,
DoubleIterable source) |
|
void |
addAtIndex(int index,
double element) |
|
LazyDoubleIterable |
asLazy() |
Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.
|
LazyDoubleIterable |
asReversed() |
|
MutableDoubleList |
asSynchronized() |
|
MutableDoubleList |
asUnmodifiable() |
|
int |
binarySearch(double value) |
|
<V> MutableList<V> |
collect(DoubleToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
<V> MutableList<V> |
collectWithIndex(DoubleIntToObjectFunction<? extends V> function) |
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
<V,R extends Collection<V>> |
collectWithIndex(DoubleIntToObjectFunction<? extends V> function,
R target) |
Adds elements to the target Collection using results obtained by applying the specified function to each element
and its corresponding index.
|
MutableDoubleList |
distinct() |
|
double |
dotProduct(DoubleList list) |
|
boolean |
equals(Object otherList) |
Follows the same general contract as
List.equals(Object) . |
void |
forEachWithIndex(DoubleIntProcedure procedure) |
|
double |
get(int index) |
|
double |
getFirst() |
|
double |
getLast() |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode() . |
int |
indexOf(double value) |
|
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectDoubleIntToObjectFunction<? super T,? extends T> function) |
|
int |
lastIndexOf(double value) |
|
MutableDoubleList |
newEmpty() |
Creates a new empty mutable version of the same List type.
|
MutableDoubleList |
reject(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return false for the specified predicate.
|
double |
removeAtIndex(int index) |
|
MutableDoubleList |
reverseThis() |
|
MutableDoubleList |
select(DoublePredicate predicate) |
Returns a new DoubleIterable with all of the elements in the DoubleIterable that
return true for the specified predicate.
|
double |
set(int index,
double element) |
|
MutableDoubleList |
sortThis() |
Sorts this list mutating its contents and returns the same mutable list (this).
|
Spliterator.OfDouble |
spliterator() |
This function needs to be synchronized manually
|
MutableDoubleList |
subList(int fromIndex,
int toIndex) |
|
ImmutableDoubleList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableDoubleList |
toReversed() |
|
SynchronizedDoubleList |
with(double element) |
|
SynchronizedDoubleList |
withAll(DoubleIterable elements) |
|
SynchronizedDoubleList |
without(double element) |
|
SynchronizedDoubleList |
withoutAll(DoubleIterable elements) |
|
<T> MutableList<DoubleObjectPair<T>> |
zip(Iterable<T> iterable) |
Returns a
MutableList formed from this MutableDoubleList and a ListIterable by
combining corresponding elements in pairs. |
MutableList<DoubleDoublePair> |
zipDouble(DoubleIterable iterable) |
Returns a
MutableList formed from this MutableDoubleList and another DoubleList by
combining corresponding elements in pairs. |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
allSatisfy, anySatisfy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
primitiveParallelStream, primitiveStream
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public SynchronizedDoubleList(MutableDoubleList list)
public SynchronizedDoubleList(MutableDoubleList list, Object newLock)
public double get(int index)
get
in interface DoubleList
public double getFirst()
getFirst
in interface OrderedDoubleIterable
public double getLast()
getLast
in interface ReversibleDoubleIterable
public int indexOf(double value)
indexOf
in interface OrderedDoubleIterable
public int lastIndexOf(double value)
lastIndexOf
in interface DoubleList
public void addAtIndex(int index, double element)
addAtIndex
in interface MutableDoubleList
public boolean addAllAtIndex(int index, double... source)
addAllAtIndex
in interface MutableDoubleList
public boolean addAllAtIndex(int index, DoubleIterable source)
addAllAtIndex
in interface MutableDoubleList
public double removeAtIndex(int index)
removeAtIndex
in interface MutableDoubleList
public double set(int index, double element)
set
in interface MutableDoubleList
public SynchronizedDoubleList with(double element)
with
in interface MutableDoubleCollection
with
in interface MutableDoubleList
with
in class AbstractSynchronizedDoubleCollection
public SynchronizedDoubleList without(double element)
without
in interface MutableDoubleCollection
without
in interface MutableDoubleList
without
in class AbstractSynchronizedDoubleCollection
public SynchronizedDoubleList withAll(DoubleIterable elements)
withAll
in interface MutableDoubleCollection
withAll
in interface MutableDoubleList
withAll
in class AbstractSynchronizedDoubleCollection
public SynchronizedDoubleList withoutAll(DoubleIterable elements)
withoutAll
in interface MutableDoubleCollection
withoutAll
in interface MutableDoubleList
withoutAll
in class AbstractSynchronizedDoubleCollection
public MutableDoubleList select(DoublePredicate predicate)
DoubleIterable
select
in interface DoubleIterable
select
in interface DoubleList
select
in interface MutableDoubleCollection
select
in interface MutableDoubleList
select
in interface OrderedDoubleIterable
select
in interface ReversibleDoubleIterable
select
in class AbstractSynchronizedDoubleCollection
public MutableDoubleList reject(DoublePredicate predicate)
DoubleIterable
reject
in interface DoubleIterable
reject
in interface DoubleList
reject
in interface MutableDoubleCollection
reject
in interface MutableDoubleList
reject
in interface OrderedDoubleIterable
reject
in interface ReversibleDoubleIterable
reject
in class AbstractSynchronizedDoubleCollection
public <V> MutableList<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterable
collect
in interface DoubleIterable
collect
in interface DoubleList
collect
in interface MutableDoubleCollection
collect
in interface MutableDoubleList
collect
in interface OrderedDoubleIterable
collect
in interface ReversibleDoubleIterable
collect
in class AbstractSynchronizedDoubleCollection
public MutableDoubleList sortThis()
MutableDoubleList
sortThis
in interface MutableDoubleList
public int binarySearch(double value)
binarySearch
in interface DoubleList
public double dotProduct(DoubleList list)
dotProduct
in interface DoubleList
public boolean equals(Object otherList)
DoubleList
List.equals(Object)
.equals
in interface DoubleList
equals
in class Object
public int hashCode()
DoubleList
List.hashCode()
.hashCode
in interface DoubleList
hashCode
in class Object
public LazyDoubleIterable asLazy()
DoubleIterable
asLazy
in interface DoubleIterable
asLazy
in class AbstractSynchronizedDoubleCollection
public MutableDoubleList asUnmodifiable()
asUnmodifiable
in interface MutableDoubleCollection
asUnmodifiable
in interface MutableDoubleList
asUnmodifiable
in class AbstractSynchronizedDoubleCollection
public MutableDoubleList asSynchronized()
asSynchronized
in interface MutableDoubleCollection
asSynchronized
in interface MutableDoubleList
asSynchronized
in class AbstractSynchronizedDoubleCollection
public ImmutableDoubleList toImmutable()
MutableDoubleList
toImmutable
in interface DoubleList
toImmutable
in interface MutableDoubleCollection
toImmutable
in interface MutableDoubleList
toImmutable
in class AbstractSynchronizedDoubleCollection
public MutableDoubleList newEmpty()
MutableDoubleList
newEmpty
in interface MutableDoubleCollection
newEmpty
in interface MutableDoubleList
public MutableDoubleList reverseThis()
reverseThis
in interface MutableDoubleList
public MutableDoubleList toReversed()
toReversed
in interface DoubleList
toReversed
in interface MutableDoubleList
toReversed
in interface ReversibleDoubleIterable
public LazyDoubleIterable asReversed()
asReversed
in interface ReversibleDoubleIterable
public void forEachWithIndex(DoubleIntProcedure procedure)
forEachWithIndex
in interface OrderedDoubleIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectDoubleIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedDoubleIterable
injectIntoWithIndex
in interface ReversibleDoubleIterable
public MutableDoubleList distinct()
distinct
in interface DoubleList
distinct
in interface MutableDoubleList
distinct
in interface ReversibleDoubleIterable
public MutableDoubleList subList(int fromIndex, int toIndex)
subList
in interface DoubleList
subList
in interface MutableDoubleList
List.subList(int fromIndex, int toIndex)
public MutableList<DoubleDoublePair> zipDouble(DoubleIterable iterable)
MutableDoubleList
MutableList
formed from this MutableDoubleList
and another DoubleList
by
combining corresponding elements in pairs. If one of the two DoubleList
s is longer than the other, its
remaining elements are ignored.zipDouble
in interface DoubleList
zipDouble
in interface MutableDoubleList
public <T> MutableList<DoubleObjectPair<T>> zip(Iterable<T> iterable)
MutableDoubleList
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.zip
in interface DoubleList
zip
in interface MutableDoubleList
public <V> MutableList<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
collectWithIndex
in interface DoubleList
collectWithIndex
in interface MutableDoubleList
collectWithIndex
in interface OrderedDoubleIterable
collectWithIndex
in interface ReversibleDoubleIterable
public <V,R extends Collection<V>> R collectWithIndex(DoubleIntToObjectFunction<? extends V> function, R target)
collectWithIndex
in interface OrderedDoubleIterable
public Spliterator.OfDouble spliterator()
spliterator
in interface DoubleList
Copyright © 2004–2019. All rights reserved.