Interface MutableFloatList
-
- All Superinterfaces:
FloatIterable,FloatList,MutableFloatCollection,OrderedFloatIterable,PrimitiveIterable,ReversibleFloatIterable
public interface MutableFloatList extends MutableFloatCollection, FloatList
This file was automatically generated from template file mutablePrimitiveList.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanaddAllAtIndex(int index, float... source)booleanaddAllAtIndex(int index, FloatIterable source)voidaddAtIndex(int index, float element)MutableFloatListasSynchronized()MutableFloatListasUnmodifiable()MutableList<Float>boxed()<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.MutableFloatListdistinct()default MutableFloatListnewEmpty()Creates a new empty mutable version of the same List type.MutableFloatListreject(FloatPredicate predicate)Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.default MutableFloatListrejectWithIndex(FloatIntPredicate predicate)Returns a new MutableFloatList excluding all elements with corresponding indexes matching the specified predicate.floatremoveAtIndex(int index)MutableFloatListreverseThis()MutableFloatListselect(FloatPredicate predicate)Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.default MutableFloatListselectWithIndex(FloatIntPredicate predicate)Returns a new MutableFloatList including all elements with corresponding indexes matching the specified predicate.floatset(int index, float element)default MutableFloatListshuffleThis()Randomly 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).MutableFloatListsortThis()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.MutableFloatListsubList(int fromIndex, int toIndex)default voidswap(int index1, int index2)default MutableFloatListtap(FloatProcedure procedure)ImmutableFloatListtoImmutable()Returns an immutable copy of this list.MutableFloatListtoReversed()MutableFloatListwith(float element)MutableFloatListwithAll(FloatIterable elements)MutableFloatListwithout(float element)MutableFloatListwithoutAll(FloatIterable elements)default <T> MutableList<FloatObjectPair<T>>zip(Iterable<T> list)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, 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.list.primitive.FloatList
binarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableFloatCollection
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable
asReversed, getLast, injectIntoWithIndex
-
-
-
-
Method Detail
-
addAtIndex
void addAtIndex(int index, float element)
-
addAllAtIndex
boolean addAllAtIndex(int index, float... source)
-
addAllAtIndex
boolean addAllAtIndex(int index, FloatIterable source)
-
removeAtIndex
float removeAtIndex(int index)
-
set
float set(int index, float element)
-
boxed
MutableList<Float> boxed()
-
swap
default void swap(int index1, int index2)
-
select
MutableFloatList select(FloatPredicate predicate)
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
MutableFloatList reject(FloatPredicate predicate)
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
MutableFloatList with(float element)
- Specified by:
within interfaceMutableFloatCollection
-
without
MutableFloatList without(float element)
- Specified by:
withoutin interfaceMutableFloatCollection
-
withAll
MutableFloatList withAll(FloatIterable elements)
- Specified by:
withAllin interfaceMutableFloatCollection
-
withoutAll
MutableFloatList withoutAll(FloatIterable elements)
- Specified by:
withoutAllin interfaceMutableFloatCollection
-
tap
default MutableFloatList tap(FloatProcedure procedure)
- Specified by:
tapin interfaceFloatIterable- Specified by:
tapin interfaceFloatList- Specified by:
tapin interfaceMutableFloatCollection- Since:
- 9.0.
-
selectWithIndex
default MutableFloatList selectWithIndex(FloatIntPredicate predicate)
Returns a new MutableFloatList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceFloatList- Specified by:
selectWithIndexin interfaceOrderedFloatIterable- Specified by:
selectWithIndexin interfaceReversibleFloatIterable- Since:
- 11.1.
-
rejectWithIndex
default MutableFloatList rejectWithIndex(FloatIntPredicate predicate)
Returns a new MutableFloatList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceFloatList- Specified by:
rejectWithIndexin interfaceOrderedFloatIterable- Specified by:
rejectWithIndexin interfaceReversibleFloatIterable- Since:
- 11.1.
-
collect
<V> MutableList<V> collect(FloatToObjectFunction<? extends V> function)
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
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.- 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
default MutableFloatList sortThis(FloatComparator comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience.
-
sortThisBy
default <T> MutableFloatList sortThisBy(FloatToObjectFunction<T> function)
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
default MutableFloatList shuffleThis()
Randomly permutes this list mutating its contents and returns the same list (this). Usesjava.util.Randomas the source of randomness.
-
shuffleThis
default MutableFloatList shuffleThis(Random rnd)
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
MutableFloatList subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceFloatList- See Also:
List.subList(int fromIndex, int toIndex)
-
zipFloat
default MutableList<FloatFloatPair> zipFloat(FloatIterable iterable)
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
default <T> MutableList<FloatObjectPair<T>> zip(Iterable<T> list)
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
default MutableFloatList newEmpty()
Creates a new empty mutable version of the same List type.- Specified by:
newEmptyin interfaceMutableFloatCollection- Since:
- 9.2.
-
-