MutableDoubleCollection
, DoubleIterable
, DoubleList
, MutableDoubleList
, OrderedDoubleIterable
, ReversibleDoubleIterable
, PrimitiveIterable
public final class SynchronizedDoubleList extends AbstractSynchronizedDoubleCollection implements MutableDoubleList
MutableDoubleList
. It is imperative that the user manually synchronize on the collection when iterating over it using the
DoubleIterator
, as per Collections.synchronizedCollection(Collection)
.
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableDoubleList.asSynchronized()
,
MutableList.asSynchronized()
,
Serialized FormConstructor | Description |
---|---|
SynchronizedDoubleList(MutableDoubleList list) |
|
SynchronizedDoubleList(MutableDoubleList list,
java.lang.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.
|
MutableDoubleList |
distinct() |
|
double |
dotProduct(DoubleList list) |
|
boolean |
equals(java.lang.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 |
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).
|
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) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
allSatisfy, anySatisfy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public SynchronizedDoubleList(MutableDoubleList list)
public SynchronizedDoubleList(MutableDoubleList list, java.lang.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(java.lang.Object otherList)
DoubleList
List.equals(Object)
.equals
in interface DoubleList
equals
in class java.lang.Object
public int hashCode()
DoubleList
List.hashCode()
.hashCode
in interface DoubleList
hashCode
in class java.lang.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 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)
Copyright © 2004–2017. All rights reserved.