public interface MutableDoubleList extends MutableDoubleCollection, DoubleList
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
double... source) |
boolean |
addAllAtIndex(int index,
DoubleIterable source) |
void |
addAtIndex(int index,
double element) |
MutableDoubleList |
asSynchronized() |
MutableDoubleList |
asUnmodifiable() |
<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.
|
default <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.
|
MutableDoubleList |
distinct() |
default 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.
|
default MutableDoubleList |
rejectWithIndex(DoubleIntPredicate predicate)
Returns a new MutableDoubleList excluding all elements with corresponding indexes matching 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.
|
default MutableDoubleList |
selectWithIndex(DoubleIntPredicate predicate)
Returns a new MutableDoubleList including all elements with corresponding indexes matching the specified predicate.
|
double |
set(int index,
double element) |
default MutableDoubleList |
shuffleThis()
Randomly permutes this list mutating its contents and returns the same list (this).
|
default MutableDoubleList |
shuffleThis(Random rnd)
Randomly permutes this list mutating its contents and returns the same list (this).
|
MutableDoubleList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
default MutableDoubleList |
sortThis(DoubleComparator comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
default <T> MutableDoubleList |
sortThisBy(DoubleToObjectFunction<T> function)
Sorts the internal data structure of this list based on the natural order of the key returned by
function. |
default <T> MutableDoubleList |
sortThisBy(DoubleToObjectFunction<T> function,
Comparator<? super T> comparator)
Sorts the internal data structure of this list based on the key returned by
function using the provided comparator. |
MutableDoubleList |
subList(int fromIndex,
int toIndex) |
default void |
swap(int index1,
int index2) |
default MutableDoubleList |
tap(DoubleProcedure procedure) |
ImmutableDoubleList |
toImmutable()
Returns an immutable copy of this list.
|
MutableDoubleList |
toReversed() |
MutableDoubleList |
with(double element) |
MutableDoubleList |
withAll(DoubleIterable elements) |
MutableDoubleList |
without(double element) |
MutableDoubleList |
withoutAll(DoubleIterable elements) |
default <T> MutableList<DoubleObjectPair<T>> |
zip(Iterable<T> list)
Returns a
MutableList formed from this MutableDoubleList and a ListIterable by
combining corresponding elements in pairs. |
default MutableList<DoubleDoublePair> |
zipDouble(DoubleIterable iterable)
Returns a
MutableList formed from this MutableDoubleList and another DoubleList by
combining corresponding elements in pairs. |
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllbinarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliteratorasReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndexallSatisfy, anySatisfy, asLazy, 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, toStringvoid addAtIndex(int index,
double element)
boolean addAllAtIndex(int index,
double... source)
boolean addAllAtIndex(int index,
DoubleIterable source)
double removeAtIndex(int index)
double set(int index,
double element)
default void swap(int index1,
int index2)
MutableDoubleList select(DoublePredicate predicate)
DoubleIterableselect in interface DoubleIterableselect in interface DoubleListselect in interface MutableDoubleCollectionselect in interface OrderedDoubleIterableselect in interface ReversibleDoubleIterableMutableDoubleList reject(DoublePredicate predicate)
DoubleIterablereject in interface DoubleIterablereject in interface DoubleListreject in interface MutableDoubleCollectionreject in interface OrderedDoubleIterablereject in interface ReversibleDoubleIterableMutableDoubleList with(double element)
with in interface MutableDoubleCollectionMutableDoubleList without(double element)
without in interface MutableDoubleCollectionMutableDoubleList withAll(DoubleIterable elements)
withAll in interface MutableDoubleCollectionMutableDoubleList withoutAll(DoubleIterable elements)
withoutAll in interface MutableDoubleCollectiondefault MutableDoubleList tap(DoubleProcedure procedure)
tap in interface DoubleIterabletap in interface DoubleListtap in interface MutableDoubleCollectiondefault MutableDoubleList selectWithIndex(DoubleIntPredicate predicate)
selectWithIndex in interface DoubleListselectWithIndex in interface OrderedDoubleIterableselectWithIndex in interface ReversibleDoubleIterabledefault MutableDoubleList rejectWithIndex(DoubleIntPredicate predicate)
rejectWithIndex in interface DoubleListrejectWithIndex in interface OrderedDoubleIterablerejectWithIndex in interface ReversibleDoubleIterable<V> MutableList<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterablecollect in interface DoubleIterablecollect in interface DoubleListcollect in interface MutableDoubleCollectioncollect in interface OrderedDoubleIterablecollect in interface ReversibleDoubleIterabledefault <V> MutableList<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
collectWithIndex in interface DoubleListcollectWithIndex in interface OrderedDoubleIterablecollectWithIndex in interface ReversibleDoubleIterableMutableDoubleList reverseThis()
MutableDoubleList toReversed()
toReversed in interface DoubleListtoReversed in interface ReversibleDoubleIterableMutableDoubleList distinct()
distinct in interface DoubleListdistinct in interface ReversibleDoubleIterableMutableDoubleList sortThis()
default MutableDoubleList sortThis(DoubleComparator comparator)
default <T> MutableDoubleList sortThisBy(DoubleToObjectFunction<T> function)
function.default <T> MutableDoubleList sortThisBy(DoubleToObjectFunction<T> function, Comparator<? super T> comparator)
function using the provided comparator.default MutableDoubleList shuffleThis()
java.util.Random as the source of randomness.default MutableDoubleList shuffleThis(Random rnd)
MutableDoubleList asUnmodifiable()
asUnmodifiable in interface MutableDoubleCollectionMutableDoubleList asSynchronized()
asSynchronized in interface MutableDoubleCollectionImmutableDoubleList toImmutable()
toImmutable in interface DoubleListtoImmutable in interface MutableDoubleCollectionMutableDoubleList subList(int fromIndex, int toIndex)
subList in interface DoubleListList.subList(int fromIndex, int toIndex)default MutableList<DoubleDoublePair> zipDouble(DoubleIterable iterable)
MutableList formed from this MutableDoubleList and another DoubleList by
combining corresponding elements in pairs. If one of the two DoubleLists is longer than the other, its
remaining elements are ignored.zipDouble in interface DoubleListdefault <T> MutableList<DoubleObjectPair<T>> zip(Iterable<T> list)
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 DoubleListdefault MutableDoubleList newEmpty()
newEmpty in interface MutableDoubleCollectionCopyright © 2004–2023. All rights reserved.