@ThreadSafe public final class SynchronizedDoubleList extends AbstractSynchronizedDoubleCollection implements com.gs.collections.api.list.primitive.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| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
double... source) |
boolean |
addAllAtIndex(int index,
com.gs.collections.api.DoubleIterable source) |
void |
addAtIndex(int index,
double element) |
com.gs.collections.api.LazyDoubleIterable |
asLazy() |
com.gs.collections.api.LazyDoubleIterable |
asReversed() |
com.gs.collections.api.list.primitive.MutableDoubleList |
asSynchronized() |
com.gs.collections.api.list.primitive.MutableDoubleList |
asUnmodifiable() |
int |
binarySearch(double value) |
<V> com.gs.collections.api.list.MutableList<V> |
collect(com.gs.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function) |
com.gs.collections.api.list.primitive.MutableDoubleList |
distinct() |
double |
dotProduct(com.gs.collections.api.list.primitive.DoubleList list) |
boolean |
equals(java.lang.Object otherList)
Follows the same general contract as
List.equals(Object). |
void |
forEachWithIndex(com.gs.collections.api.block.procedure.primitive.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,
com.gs.collections.api.block.function.primitive.ObjectDoubleIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(double value) |
com.gs.collections.api.list.primitive.MutableDoubleList |
reject(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
double |
removeAtIndex(int index) |
com.gs.collections.api.list.primitive.MutableDoubleList |
reverseThis() |
com.gs.collections.api.list.primitive.MutableDoubleList |
select(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
double |
set(int index,
double element) |
com.gs.collections.api.list.primitive.MutableDoubleList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
com.gs.collections.api.list.primitive.MutableDoubleList |
subList(int fromIndex,
int toIndex) |
com.gs.collections.api.list.primitive.ImmutableDoubleList |
toImmutable()
Returns an immutable copy of this list.
|
com.gs.collections.api.list.primitive.MutableDoubleList |
toReversed() |
SynchronizedDoubleList |
with(double element) |
SynchronizedDoubleList |
withAll(com.gs.collections.api.DoubleIterable elements) |
SynchronizedDoubleList |
without(double element) |
SynchronizedDoubleList |
withoutAll(com.gs.collections.api.DoubleIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, forEach, getDoubleCollection, getLock, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic double get(int index)
get in interface com.gs.collections.api.list.primitive.DoubleListpublic double getFirst()
getFirst in interface com.gs.collections.api.ordered.primitive.OrderedDoubleIterablepublic double getLast()
getLast in interface com.gs.collections.api.ordered.primitive.ReversibleDoubleIterablepublic int indexOf(double value)
indexOf in interface com.gs.collections.api.ordered.primitive.OrderedDoubleIterablepublic int lastIndexOf(double value)
lastIndexOf in interface com.gs.collections.api.list.primitive.DoubleListpublic void addAtIndex(int index,
double element)
addAtIndex in interface com.gs.collections.api.list.primitive.MutableDoubleListpublic boolean addAllAtIndex(int index,
double... source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableDoubleListpublic boolean addAllAtIndex(int index,
com.gs.collections.api.DoubleIterable source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableDoubleListpublic double removeAtIndex(int index)
removeAtIndex in interface com.gs.collections.api.list.primitive.MutableDoubleListpublic double set(int index,
double element)
set in interface com.gs.collections.api.list.primitive.MutableDoubleListpublic SynchronizedDoubleList with(double element)
with in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwith in interface com.gs.collections.api.list.primitive.MutableDoubleListwith in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleList without(double element)
without in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithout in interface com.gs.collections.api.list.primitive.MutableDoubleListwithout in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleList withAll(com.gs.collections.api.DoubleIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithAll in interface com.gs.collections.api.list.primitive.MutableDoubleListwithAll in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleList withoutAll(com.gs.collections.api.DoubleIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithoutAll in interface com.gs.collections.api.list.primitive.MutableDoubleListwithoutAll in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.list.primitive.MutableDoubleList select(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionselect in interface com.gs.collections.api.DoubleIterableselect in interface com.gs.collections.api.list.primitive.DoubleListselect in interface com.gs.collections.api.list.primitive.MutableDoubleListselect in interface com.gs.collections.api.ordered.primitive.OrderedDoubleIterableselect in interface com.gs.collections.api.ordered.primitive.ReversibleDoubleIterableselect in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.list.primitive.MutableDoubleList reject(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionreject in interface com.gs.collections.api.DoubleIterablereject in interface com.gs.collections.api.list.primitive.DoubleListreject in interface com.gs.collections.api.list.primitive.MutableDoubleListreject in interface com.gs.collections.api.ordered.primitive.OrderedDoubleIterablereject in interface com.gs.collections.api.ordered.primitive.ReversibleDoubleIterablereject in class AbstractSynchronizedDoubleCollectionpublic <V> com.gs.collections.api.list.MutableList<V> collect(com.gs.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectioncollect in interface com.gs.collections.api.DoubleIterablecollect in interface com.gs.collections.api.list.primitive.DoubleListcollect in interface com.gs.collections.api.list.primitive.MutableDoubleListcollect in interface com.gs.collections.api.ordered.primitive.OrderedDoubleIterablecollect in interface com.gs.collections.api.ordered.primitive.ReversibleDoubleIterablecollect in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.list.primitive.MutableDoubleList sortThis()
com.gs.collections.api.list.primitive.MutableDoubleListsortThis in interface com.gs.collections.api.list.primitive.MutableDoubleListpublic int binarySearch(double value)
binarySearch in interface com.gs.collections.api.list.primitive.DoubleListpublic double dotProduct(com.gs.collections.api.list.primitive.DoubleList list)
dotProduct in interface com.gs.collections.api.list.primitive.DoubleListpublic boolean equals(java.lang.Object otherList)
com.gs.collections.api.list.primitive.DoubleListList.equals(Object).equals in interface com.gs.collections.api.list.primitive.DoubleListequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.list.primitive.DoubleListList.hashCode().hashCode in interface com.gs.collections.api.list.primitive.DoubleListhashCode in class java.lang.Objectpublic com.gs.collections.api.LazyDoubleIterable asLazy()
asLazy in interface com.gs.collections.api.DoubleIterableasLazy in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.list.primitive.MutableDoubleList asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionasUnmodifiable in interface com.gs.collections.api.list.primitive.MutableDoubleListasUnmodifiable in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.list.primitive.MutableDoubleList asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionasSynchronized in interface com.gs.collections.api.list.primitive.MutableDoubleListasSynchronized in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.list.primitive.ImmutableDoubleList toImmutable()
com.gs.collections.api.list.primitive.MutableDoubleListtoImmutable in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectiontoImmutable in interface com.gs.collections.api.list.primitive.DoubleListtoImmutable in interface com.gs.collections.api.list.primitive.MutableDoubleListtoImmutable in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.list.primitive.MutableDoubleList reverseThis()
reverseThis in interface com.gs.collections.api.list.primitive.MutableDoubleListpublic com.gs.collections.api.list.primitive.MutableDoubleList toReversed()
toReversed in interface com.gs.collections.api.list.primitive.DoubleListtoReversed in interface com.gs.collections.api.list.primitive.MutableDoubleListtoReversed in interface com.gs.collections.api.ordered.primitive.ReversibleDoubleIterablepublic com.gs.collections.api.LazyDoubleIterable asReversed()
asReversed in interface com.gs.collections.api.ordered.primitive.ReversibleDoubleIterablepublic void forEachWithIndex(com.gs.collections.api.block.procedure.primitive.DoubleIntProcedure procedure)
forEachWithIndex in interface com.gs.collections.api.ordered.primitive.OrderedDoubleIterablepublic <T> T injectIntoWithIndex(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectDoubleIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface com.gs.collections.api.ordered.primitive.OrderedDoubleIterableinjectIntoWithIndex in interface com.gs.collections.api.ordered.primitive.ReversibleDoubleIterablepublic com.gs.collections.api.list.primitive.MutableDoubleList distinct()
distinct in interface com.gs.collections.api.list.primitive.DoubleListdistinct in interface com.gs.collections.api.list.primitive.MutableDoubleListdistinct in interface com.gs.collections.api.ordered.primitive.ReversibleDoubleIterablepublic com.gs.collections.api.list.primitive.MutableDoubleList subList(int fromIndex,
int toIndex)
subList in interface com.gs.collections.api.list.primitive.DoubleListsubList in interface com.gs.collections.api.list.primitive.MutableDoubleListList#subList(int fromIndex, int toIndex)}