Interface MutableDoubleList
- All Superinterfaces:
DoubleIterable,DoubleList,MutableDoubleCollection,OrderedDoubleIterable,PrimitiveIterable,ReversibleDoubleIterable
This file was automatically generated from template file mutablePrimitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAllAtIndex(int index, double... source) booleanaddAllAtIndex(int index, DoubleIterable source) voidaddAtIndex(int index, double element) boxed()<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.distinct()default MutableDoubleListnewEmpty()Creates a new empty mutable version of the same List type.reject(DoublePredicate predicate) Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.default MutableDoubleListrejectWithIndex(DoubleIntPredicate predicate) Returns a new MutableDoubleList excluding all elements with corresponding indexes matching the specified predicate.doubleremoveAtIndex(int index) select(DoublePredicate predicate) Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.default MutableDoubleListselectWithIndex(DoubleIntPredicate predicate) Returns a new MutableDoubleList including all elements with corresponding indexes matching the specified predicate.doubleset(int index, double element) default MutableDoubleListRandomly permutes this list mutating its contents and returns the same list (this).default MutableDoubleListshuffleThis(Random rnd) Randomly permutes this list mutating its contents and returns the same list (this).sortThis()Sorts this list mutating its contents and returns the same mutable list (this).default MutableDoubleListsortThis(DoubleComparator comparator) Sorts the internal data structure of this list and returns the list itself as a convenience.default <T> MutableDoubleListsortThisBy(DoubleToObjectFunction<T> function) Sorts the internal data structure of this list based on the natural order of the key returned byfunction.default <T> MutableDoubleListsortThisBy(DoubleToObjectFunction<T> function, Comparator<? super T> comparator) Sorts the internal data structure of this list based on the key returned byfunctionusing the providedcomparator.subList(int fromIndex, int toIndex) default voidswap(int index1, int index2) default MutableDoubleListtap(DoubleProcedure procedure) Returns an immutable copy of this list.with(double element) withAll(DoubleIterable elements) without(double element) withoutAll(DoubleIterable elements) default <T> MutableList<DoubleObjectPair<T>>Returns aMutableListformed from thisMutableDoubleListand aListIterableby combining corresponding elements in pairs.default MutableList<DoubleDoublePair>zipDouble(DoubleIterable iterable) Returns aMutableListformed from thisMutableDoubleListand anotherDoubleListby combining corresponding elements in pairs.Methods inherited from interface org.eclipse.collections.api.DoubleIterable
allSatisfy, 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.list.primitive.DoubleList
binarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliteratorMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollection
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedDoubleIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex, toStackMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringMethods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleDoubleIterable
asReversed, getLast, injectIntoWithIndex
-
Method Details
-
addAtIndex
void addAtIndex(int index, double element) -
addAllAtIndex
boolean addAllAtIndex(int index, double... source) -
addAllAtIndex
-
removeAtIndex
double removeAtIndex(int index) -
set
double set(int index, double element) -
boxed
MutableList<Double> boxed() -
swap
default void swap(int index1, int index2) -
select
Description copied from interface:DoubleIterableReturns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleList- Specified by:
selectin interfaceMutableDoubleCollection- Specified by:
selectin interfaceOrderedDoubleIterable- Specified by:
selectin interfaceReversibleDoubleIterable
-
reject
Description copied from interface:DoubleIterableReturns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleList- Specified by:
rejectin interfaceMutableDoubleCollection- Specified by:
rejectin interfaceOrderedDoubleIterable- Specified by:
rejectin interfaceReversibleDoubleIterable
-
with
- Specified by:
within interfaceMutableDoubleCollection
-
without
- Specified by:
withoutin interfaceMutableDoubleCollection
-
withAll
- Specified by:
withAllin interfaceMutableDoubleCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableDoubleCollection
-
tap
- Specified by:
tapin interfaceDoubleIterable- Specified by:
tapin interfaceDoubleList- Specified by:
tapin interfaceMutableDoubleCollection- Since:
- 9.0.
-
selectWithIndex
Returns a new MutableDoubleList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceDoubleList- Specified by:
selectWithIndexin interfaceOrderedDoubleIterable- Specified by:
selectWithIndexin interfaceReversibleDoubleIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new MutableDoubleList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceDoubleList- Specified by:
rejectWithIndexin interfaceOrderedDoubleIterable- Specified by:
rejectWithIndexin interfaceReversibleDoubleIterable- Since:
- 11.1.
-
collect
Description copied from interface:DoubleIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleList- Specified by:
collectin interfaceMutableDoubleCollection- Specified by:
collectin interfaceOrderedDoubleIterable- Specified by:
collectin interfaceReversibleDoubleIterable
-
collectWithIndex
Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceDoubleList- Specified by:
collectWithIndexin interfaceOrderedDoubleIterable- Specified by:
collectWithIndexin interfaceReversibleDoubleIterable- Since:
- 9.1.
-
reverseThis
MutableDoubleList reverseThis() -
toReversed
MutableDoubleList toReversed()- Specified by:
toReversedin interfaceDoubleList- Specified by:
toReversedin interfaceReversibleDoubleIterable
-
distinct
MutableDoubleList distinct()- Specified by:
distinctin interfaceDoubleList- Specified by:
distinctin interfaceReversibleDoubleIterable- Since:
- 6.0.
-
sortThis
MutableDoubleList sortThis()Sorts this list mutating its contents and returns the same mutable list (this). -
sortThis
Sorts the internal data structure of this list and returns the list itself as a convenience. -
sortThisBy
Sorts the internal data structure of this list based on the natural order of the key returned byfunction. -
sortThisBy
default <T> MutableDoubleList sortThisBy(DoubleToObjectFunction<T> function, Comparator<? super T> comparator) Sorts the internal data structure of this list based on the key returned byfunctionusing the providedcomparator. -
shuffleThis
Randomly permutes this list mutating its contents and returns the same list (this). Usesjava.util.Randomas the source of randomness. -
shuffleThis
Randomly permutes this list mutating its contents and returns the same list (this). Implements the Fisher-Yates shuffle algorithm using the provided source of randomness. -
asUnmodifiable
MutableDoubleList asUnmodifiable()- Specified by:
asUnmodifiablein interfaceMutableDoubleCollection
-
asSynchronized
MutableDoubleList asSynchronized()- Specified by:
asSynchronizedin interfaceMutableDoubleCollection
-
toImmutable
ImmutableDoubleList toImmutable()Returns an immutable copy of this list.- Specified by:
toImmutablein interfaceDoubleList- Specified by:
toImmutablein interfaceMutableDoubleCollection
-
subList
- Specified by:
subListin interfaceDoubleList- See Also:
-
zipDouble
Returns aMutableListformed from thisMutableDoubleListand anotherDoubleListby combining corresponding elements in pairs. If one of the twoDoubleLists is longer than the other, its remaining elements are ignored.- Specified by:
zipDoublein interfaceDoubleList- Since:
- 9.1.
-
zip
Returns aMutableListformed from thisMutableDoubleListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Specified by:
zipin interfaceDoubleList- Since:
- 9.1.
-
newEmpty
Creates a new empty mutable version of the same List type.- Specified by:
newEmptyin interfaceMutableDoubleCollection- Since:
- 9.2.
-