Interface MutableFloatList
- All Superinterfaces:
FloatIterable,FloatList,MutableFloatCollection,OrderedFloatIterable,PrimitiveIterable,ReversibleFloatIterable
- All Known Implementing Classes:
FloatArrayList,SynchronizedFloatList,UnmodifiableFloatList
This file was automatically generated from template file mutablePrimitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAllAtIndex(int index, float... source) booleanaddAllAtIndex(int index, FloatIterable source) voidaddAtIndex(int index, float element) <V> MutableList<V>collect(FloatToObjectFunction<? 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(FloatIntToObjectFunction<? extends V> function) Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.distinct()default MutableFloatListnewEmpty()Creates a new empty mutable version of the same List type.reject(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.floatremoveAtIndex(int index) select(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.floatset(int index, float element) default MutableFloatListRandomly permutes this list mutating its contents and returns the same list (this).default MutableFloatListshuffleThis(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 MutableFloatListsortThis(FloatComparator comparator) Sorts the internal data structure of this list and returns the list itself as a convenience.default <T> MutableFloatListsortThisBy(FloatToObjectFunction<T> function) Sorts the internal data structure of this list based on the natural order of the key returned byfunction.default <T> MutableFloatListsortThisBy(FloatToObjectFunction<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 MutableFloatListtap(FloatProcedure procedure) Returns an immutable copy of this list.with(float element) withAll(FloatIterable elements) without(float element) withoutAll(FloatIterable elements) default <T> MutableList<FloatObjectPair<T>>Returns aMutableListformed from thisMutableFloatListand aListIterableby combining corresponding elements in pairs.default MutableList<FloatFloatPair>zipFloat(FloatIterable iterable) Returns aMutableListformed from thisMutableFloatListand anotherFloatListby combining corresponding elements in pairs.Methods inherited from interface org.eclipse.collections.api.FloatIterable
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, 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.FloatList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOfMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableFloatCollection
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable
collectWithIndex, forEachWithIndex, getFirst, indexOfMethods 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.ReversibleFloatIterable
asReversed, getLast, injectIntoWithIndex
-
Method Details
-
addAtIndex
void addAtIndex(int index, float element) -
addAllAtIndex
boolean addAllAtIndex(int index, float... source) -
addAllAtIndex
-
removeAtIndex
float removeAtIndex(int index) -
set
float set(int index, float element) -
swap
default void swap(int index1, int index2) -
select
Description copied from interface:FloatIterableReturns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceFloatList- Specified by:
selectin interfaceMutableFloatCollection- Specified by:
selectin interfaceOrderedFloatIterable- Specified by:
selectin interfaceReversibleFloatIterable
-
reject
Description copied from interface:FloatIterableReturns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceFloatList- Specified by:
rejectin interfaceMutableFloatCollection- Specified by:
rejectin interfaceOrderedFloatIterable- Specified by:
rejectin interfaceReversibleFloatIterable
-
with
- Specified by:
within interfaceMutableFloatCollection
-
without
- Specified by:
withoutin interfaceMutableFloatCollection
-
withAll
- Specified by:
withAllin interfaceMutableFloatCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableFloatCollection
-
tap
- Specified by:
tapin interfaceFloatIterable- Specified by:
tapin interfaceFloatList- Specified by:
tapin interfaceMutableFloatCollection- Since:
- 9.0.
-
collect
Description copied from interface:FloatIterableReturns 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 interfaceFloatIterable- Specified by:
collectin interfaceFloatList- Specified by:
collectin interfaceMutableFloatCollection- Specified by:
collectin interfaceOrderedFloatIterable- Specified by:
collectin interfaceReversibleFloatIterable
-
collectWithIndex
Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceFloatList- Specified by:
collectWithIndexin interfaceOrderedFloatIterable- Specified by:
collectWithIndexin interfaceReversibleFloatIterable- Since:
- 9.1.
-
reverseThis
MutableFloatList reverseThis() -
toReversed
MutableFloatList toReversed()- Specified by:
toReversedin interfaceFloatList- Specified by:
toReversedin interfaceReversibleFloatIterable
-
distinct
MutableFloatList distinct()- Specified by:
distinctin interfaceFloatList- Specified by:
distinctin interfaceReversibleFloatIterable- Since:
- 6.0.
-
sortThis
MutableFloatList 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> MutableFloatList sortThisBy(FloatToObjectFunction<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
MutableFloatList asUnmodifiable()- Specified by:
asUnmodifiablein interfaceMutableFloatCollection
-
asSynchronized
MutableFloatList asSynchronized()- Specified by:
asSynchronizedin interfaceMutableFloatCollection
-
toImmutable
ImmutableFloatList toImmutable()Returns an immutable copy of this list.- Specified by:
toImmutablein interfaceFloatList- Specified by:
toImmutablein interfaceMutableFloatCollection
-
subList
-
zipFloat
Returns aMutableListformed from thisMutableFloatListand anotherFloatListby combining corresponding elements in pairs. If one of the twoFloatLists is longer than the other, its remaining elements are ignored. -
zip
Returns aMutableListformed from thisMutableFloatListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored. -
newEmpty
Creates a new empty mutable version of the same List type.- Specified by:
newEmptyin interfaceMutableFloatCollection- Since:
- 9.2.
-