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 Form| Constructor and Description |
|---|
SynchronizedDoubleList(MutableDoubleList list) |
SynchronizedDoubleList(MutableDoubleList list,
Object newLock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
double... source) |
boolean |
addAllAtIndex(int index,
DoubleIterable source) |
void |
addAtIndex(int index,
double element) |
LazyDoubleIterable |
asLazy() |
LazyDoubleIterable |
asReversed() |
MutableDoubleList |
asSynchronized() |
MutableDoubleList |
asUnmodifiable() |
int |
binarySearch(double value) |
<V> MutableList<V> |
collect(DoubleToObjectFunction<? extends V> function) |
<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) |
void |
forEachInBoth(DoubleList other,
DoubleDoubleProcedure procedure) |
void |
forEachWithIndex(DoubleIntProcedure procedure) |
double |
get(int index) |
double |
getFirst() |
double |
getLast() |
int |
hashCode() |
int |
indexOf(double value) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectDoubleIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(double value) |
MutableDoubleList |
newEmpty() |
MutableDoubleList |
reject(DoublePredicate predicate) |
MutableDoubleList |
rejectWithIndex(DoubleIntPredicate predicate)
Returns a new MutableDoubleList excluding all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableDoubleCollection> |
rejectWithIndex(DoubleIntPredicate predicate,
R target)
Returns a new MutableDoubleCollection excluding all elements with corresponding indexes matching the specified predicate.
|
double |
removeAtIndex(int index) |
MutableDoubleList |
reverseThis() |
MutableDoubleList |
select(DoublePredicate predicate) |
MutableDoubleList |
selectWithIndex(DoubleIntPredicate predicate)
Returns a new MutableDoubleList including all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableDoubleCollection> |
selectWithIndex(DoubleIntPredicate predicate,
R target)
Returns a new MutableDoubleCollection including all elements with corresponding indexes matching the specified predicate.
|
double |
set(int index,
double element) |
MutableDoubleList |
shuffleThis() |
MutableDoubleList |
shuffleThis(Random rnd) |
MutableDoubleList |
sortThis() |
MutableDoubleList |
sortThis(DoubleComparator comparator) |
<T> MutableDoubleList |
sortThisBy(DoubleToObjectFunction<T> function) |
<T> MutableDoubleList |
sortThisBy(DoubleToObjectFunction<T> function,
Comparator<? super T> comparator) |
Spliterator.OfDouble |
spliterator()
This function needs to be synchronized manually
|
MutableDoubleList |
subList(int fromIndex,
int toIndex) |
ImmutableDoubleList |
toImmutable() |
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) |
MutableList<DoubleDoublePair> |
zipDouble(DoubleIterable iterable) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringswap, tapadd, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllprimitiveParallelStream, primitiveStreamallSatisfy, anySatisfy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedDoubleList(MutableDoubleList list)
public SynchronizedDoubleList(MutableDoubleList list, Object newLock)
public double get(int index)
get in interface DoubleListpublic double getFirst()
getFirst in interface OrderedDoubleIterablepublic double getLast()
getLast in interface ReversibleDoubleIterablepublic int indexOf(double value)
indexOf in interface OrderedDoubleIterablepublic int lastIndexOf(double value)
lastIndexOf in interface DoubleListpublic void addAtIndex(int index,
double element)
addAtIndex in interface MutableDoubleListpublic boolean addAllAtIndex(int index,
double... source)
addAllAtIndex in interface MutableDoubleListpublic boolean addAllAtIndex(int index,
DoubleIterable source)
addAllAtIndex in interface MutableDoubleListpublic double removeAtIndex(int index)
removeAtIndex in interface MutableDoubleListpublic double set(int index,
double element)
set in interface MutableDoubleListpublic SynchronizedDoubleList with(double element)
with in interface MutableDoubleCollectionwith in interface MutableDoubleListwith in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleList without(double element)
without in interface MutableDoubleCollectionwithout in interface MutableDoubleListwithout in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleList withAll(DoubleIterable elements)
withAll in interface MutableDoubleCollectionwithAll in interface MutableDoubleListwithAll in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleList withoutAll(DoubleIterable elements)
withoutAll in interface MutableDoubleCollectionwithoutAll in interface MutableDoubleListwithoutAll in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleList select(DoublePredicate predicate)
select in interface MutableDoubleCollectionselect in interface DoubleIterableselect in interface DoubleListselect in interface MutableDoubleListselect in interface OrderedDoubleIterableselect in interface ReversibleDoubleIterableselect in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleList reject(DoublePredicate predicate)
reject in interface MutableDoubleCollectionreject in interface DoubleIterablereject in interface DoubleListreject in interface MutableDoubleListreject in interface OrderedDoubleIterablereject in interface ReversibleDoubleIterablereject in class AbstractSynchronizedDoubleCollectionpublic <V> MutableList<V> collect(DoubleToObjectFunction<? extends V> function)
collect in interface MutableDoubleCollectioncollect in interface DoubleIterablecollect in interface DoubleListcollect in interface MutableDoubleListcollect in interface OrderedDoubleIterablecollect in interface ReversibleDoubleIterablecollect in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleList sortThis()
sortThis in interface MutableDoubleListpublic MutableDoubleList sortThis(DoubleComparator comparator)
sortThis in interface MutableDoubleListpublic <T> MutableDoubleList sortThisBy(DoubleToObjectFunction<T> function)
sortThisBy in interface MutableDoubleListpublic <T> MutableDoubleList sortThisBy(DoubleToObjectFunction<T> function, Comparator<? super T> comparator)
sortThisBy in interface MutableDoubleListpublic MutableDoubleList shuffleThis()
shuffleThis in interface MutableDoubleListpublic MutableDoubleList shuffleThis(Random rnd)
shuffleThis in interface MutableDoubleListpublic int binarySearch(double value)
binarySearch in interface DoubleListpublic double dotProduct(DoubleList list)
dotProduct in interface DoubleListpublic boolean equals(Object otherList)
equals in interface DoubleListequals in class Objectpublic int hashCode()
hashCode in interface DoubleListhashCode in class Objectpublic LazyDoubleIterable asLazy()
asLazy in interface DoubleIterableasLazy in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleList asUnmodifiable()
asUnmodifiable in interface MutableDoubleCollectionasUnmodifiable in interface MutableDoubleListasUnmodifiable in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleList asSynchronized()
asSynchronized in interface MutableDoubleCollectionasSynchronized in interface MutableDoubleListasSynchronized in class AbstractSynchronizedDoubleCollectionpublic ImmutableDoubleList toImmutable()
toImmutable in interface MutableDoubleCollectiontoImmutable in interface DoubleListtoImmutable in interface MutableDoubleListtoImmutable in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleList newEmpty()
newEmpty in interface MutableDoubleCollectionnewEmpty in interface MutableDoubleListpublic MutableDoubleList reverseThis()
reverseThis in interface MutableDoubleListpublic MutableDoubleList toReversed()
toReversed in interface DoubleListtoReversed in interface MutableDoubleListtoReversed in interface ReversibleDoubleIterablepublic LazyDoubleIterable asReversed()
asReversed in interface ReversibleDoubleIterablepublic void forEachInBoth(DoubleList other, DoubleDoubleProcedure procedure)
forEachInBoth in interface DoubleListpublic void forEachWithIndex(DoubleIntProcedure procedure)
forEachWithIndex in interface OrderedDoubleIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectDoubleIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedDoubleIterableinjectIntoWithIndex in interface ReversibleDoubleIterablepublic MutableDoubleList distinct()
distinct in interface DoubleListdistinct in interface MutableDoubleListdistinct in interface ReversibleDoubleIterablepublic MutableDoubleList subList(int fromIndex, int toIndex)
subList in interface DoubleListsubList in interface MutableDoubleListpublic MutableList<DoubleDoublePair> zipDouble(DoubleIterable iterable)
zipDouble in interface DoubleListzipDouble in interface MutableDoubleListpublic <T> MutableList<DoubleObjectPair<T>> zip(Iterable<T> iterable)
zip in interface DoubleListzip in interface MutableDoubleListpublic MutableDoubleList selectWithIndex(DoubleIntPredicate predicate)
selectWithIndex in interface DoubleListselectWithIndex in interface MutableDoubleListselectWithIndex in interface OrderedDoubleIterableselectWithIndex in interface ReversibleDoubleIterablepublic <R extends MutableDoubleCollection> R selectWithIndex(DoubleIntPredicate predicate, R target)
selectWithIndex in interface OrderedDoubleIterablepublic MutableDoubleList rejectWithIndex(DoubleIntPredicate predicate)
rejectWithIndex in interface DoubleListrejectWithIndex in interface MutableDoubleListrejectWithIndex in interface OrderedDoubleIterablerejectWithIndex in interface ReversibleDoubleIterablepublic <R extends MutableDoubleCollection> R rejectWithIndex(DoubleIntPredicate predicate, R target)
rejectWithIndex in interface OrderedDoubleIterablepublic <V> MutableList<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
collectWithIndex in interface DoubleListcollectWithIndex in interface MutableDoubleListcollectWithIndex in interface OrderedDoubleIterablecollectWithIndex in interface ReversibleDoubleIterablepublic <V,R extends Collection<V>> R collectWithIndex(DoubleIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedDoubleIterablepublic Spliterator.OfDouble spliterator()
spliterator in interface DoubleListCopyright © 2004–2022. All rights reserved.