DoubleIterable
, DoubleList
, MutableDoubleCollection
, OrderedDoubleIterable
, PrimitiveIterable
, ReversibleDoubleIterable
DoubleArrayList
, SynchronizedDoubleList
, UnmodifiableDoubleList
public interface MutableDoubleList extends MutableDoubleCollection, DoubleList
Modifier and Type | Method | 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.
|
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) |
|
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(java.lang.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. |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, 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
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
void 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)
MutableDoubleList select(DoublePredicate predicate)
DoubleIterable
select
in interface DoubleIterable
select
in interface DoubleList
select
in interface MutableDoubleCollection
select
in interface OrderedDoubleIterable
select
in interface ReversibleDoubleIterable
MutableDoubleList reject(DoublePredicate predicate)
DoubleIterable
reject
in interface DoubleIterable
reject
in interface DoubleList
reject
in interface MutableDoubleCollection
reject
in interface OrderedDoubleIterable
reject
in interface ReversibleDoubleIterable
MutableDoubleList with(double element)
with
in interface MutableDoubleCollection
MutableDoubleList without(double element)
without
in interface MutableDoubleCollection
MutableDoubleList withAll(DoubleIterable elements)
withAll
in interface MutableDoubleCollection
MutableDoubleList withoutAll(DoubleIterable elements)
withoutAll
in interface MutableDoubleCollection
default MutableDoubleList tap(DoubleProcedure procedure)
tap
in interface DoubleIterable
tap
in interface DoubleList
tap
in interface MutableDoubleCollection
<V> MutableList<V> collect(DoubleToObjectFunction<? extends V> function)
DoubleIterable
collect
in interface DoubleIterable
collect
in interface DoubleList
collect
in interface MutableDoubleCollection
collect
in interface OrderedDoubleIterable
collect
in interface ReversibleDoubleIterable
default <V> MutableList<V> collectWithIndex(DoubleIntToObjectFunction<? extends V> function)
collectWithIndex
in interface DoubleList
collectWithIndex
in interface OrderedDoubleIterable
collectWithIndex
in interface ReversibleDoubleIterable
MutableDoubleList reverseThis()
MutableDoubleList toReversed()
toReversed
in interface DoubleList
toReversed
in interface ReversibleDoubleIterable
MutableDoubleList distinct()
distinct
in interface DoubleList
distinct
in interface ReversibleDoubleIterable
MutableDoubleList sortThis()
MutableDoubleList asUnmodifiable()
asUnmodifiable
in interface MutableDoubleCollection
MutableDoubleList asSynchronized()
asSynchronized
in interface MutableDoubleCollection
ImmutableDoubleList toImmutable()
toImmutable
in interface DoubleList
toImmutable
in interface MutableDoubleCollection
MutableDoubleList subList(int fromIndex, int toIndex)
subList
in interface DoubleList
List.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 DoubleList
s is longer than the other, its
remaining elements are ignored.zipDouble
in interface DoubleList
default <T> MutableList<DoubleObjectPair<T>> zip(java.lang.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 DoubleList
default MutableDoubleList newEmpty()
newEmpty
in interface MutableDoubleCollection
Copyright © 2004–2018. All rights reserved.