MutableDoubleCollection, DoubleIterable, DoubleList, MutableDoubleList, OrderedDoubleIterable, ReversibleDoubleIterable, PrimitiveIterablepublic 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 Form| Constructor | 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, toStringallSatisfy, 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, toSortedListadd, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedDoubleList(MutableDoubleList list)
public SynchronizedDoubleList(MutableDoubleList list, java.lang.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)
DoubleIterableselect in interface DoubleIterableselect in interface DoubleListselect in interface MutableDoubleCollectionselect in interface MutableDoubleListselect in interface OrderedDoubleIterableselect in interface ReversibleDoubleIterableselect in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleList reject(DoublePredicate predicate)
DoubleIterablereject in interface DoubleIterablereject in interface DoubleListreject in interface MutableDoubleCollectionreject in interface MutableDoubleListreject in interface OrderedDoubleIterablereject in interface ReversibleDoubleIterablereject in class AbstractSynchronizedDoubleCollectionpublic <V> MutableList<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleIterablecollect in interface DoubleListcollect in interface MutableDoubleCollectioncollect in interface MutableDoubleListcollect in interface OrderedDoubleIterablecollect in interface ReversibleDoubleIterablecollect in class AbstractSynchronizedDoubleCollectionpublic MutableDoubleList sortThis()
MutableDoubleListsortThis in interface MutableDoubleListpublic int binarySearch(double value)
binarySearch in interface DoubleListpublic double dotProduct(DoubleList list)
dotProduct in interface DoubleListpublic boolean equals(java.lang.Object otherList)
DoubleListList.equals(Object).equals in interface DoubleListequals in class java.lang.Objectpublic int hashCode()
DoubleListList.hashCode().hashCode in interface DoubleListhashCode in class java.lang.Objectpublic LazyDoubleIterable asLazy()
DoubleIterableasLazy 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()
MutableDoubleListtoImmutable in interface DoubleListtoImmutable in interface MutableDoubleCollectiontoImmutable in interface MutableDoubleListtoImmutable in class AbstractSynchronizedDoubleCollectionpublic 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 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 MutableDoubleListList.subList(int fromIndex, int toIndex)Copyright © 2004–2017. All rights reserved.