public interface MutableFloatList extends MutableFloatCollection, FloatList
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
float... source) |
boolean |
addAllAtIndex(int index,
FloatIterable source) |
void |
addAtIndex(int index,
float element) |
MutableFloatList |
asSynchronized() |
MutableFloatList |
asUnmodifiable() |
<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.
|
MutableFloatList |
distinct() |
default MutableFloatList |
newEmpty()
Creates a new empty mutable version of the same List type.
|
MutableFloatList |
reject(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
default MutableFloatList |
rejectWithIndex(FloatIntPredicate predicate)
Returns a new MutableFloatList excluding all elements with corresponding indexes matching the specified predicate.
|
float |
removeAtIndex(int index) |
MutableFloatList |
reverseThis() |
MutableFloatList |
select(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified predicate.
|
default MutableFloatList |
selectWithIndex(FloatIntPredicate predicate)
Returns a new MutableFloatList including all elements with corresponding indexes matching the specified predicate.
|
float |
set(int index,
float element) |
default MutableFloatList |
shuffleThis()
Randomly permutes this list mutating its contents and returns the same list (this).
|
default MutableFloatList |
shuffleThis(Random rnd)
Randomly permutes this list mutating its contents and returns the same list (this).
|
MutableFloatList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
default MutableFloatList |
sortThis(FloatComparator comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
default <T> MutableFloatList |
sortThisBy(FloatToObjectFunction<T> function)
Sorts the internal data structure of this list based on the natural order of the key returned by
function. |
default <T> MutableFloatList |
sortThisBy(FloatToObjectFunction<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. |
MutableFloatList |
subList(int fromIndex,
int toIndex) |
default void |
swap(int index1,
int index2) |
default MutableFloatList |
tap(FloatProcedure procedure) |
ImmutableFloatList |
toImmutable()
Returns an immutable copy of this list.
|
MutableFloatList |
toReversed() |
MutableFloatList |
with(float element) |
MutableFloatList |
withAll(FloatIterable elements) |
MutableFloatList |
without(float element) |
MutableFloatList |
withoutAll(FloatIterable elements) |
default <T> MutableList<FloatObjectPair<T>> |
zip(Iterable<T> list)
Returns a
MutableList formed from this MutableFloatList and a ListIterable by
combining corresponding elements in pairs. |
default MutableList<FloatFloatPair> |
zipFloat(FloatIterable iterable)
Returns a
MutableList formed from this MutableFloatList and another FloatList by
combining corresponding elements in pairs. |
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllbinarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOfasReversed, 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,
float element)
boolean addAllAtIndex(int index,
float... source)
boolean addAllAtIndex(int index,
FloatIterable source)
float removeAtIndex(int index)
float set(int index,
float element)
default void swap(int index1,
int index2)
MutableFloatList select(FloatPredicate predicate)
FloatIterableselect in interface FloatIterableselect in interface FloatListselect in interface MutableFloatCollectionselect in interface OrderedFloatIterableselect in interface ReversibleFloatIterableMutableFloatList reject(FloatPredicate predicate)
FloatIterablereject in interface FloatIterablereject in interface FloatListreject in interface MutableFloatCollectionreject in interface OrderedFloatIterablereject in interface ReversibleFloatIterableMutableFloatList with(float element)
with in interface MutableFloatCollectionMutableFloatList without(float element)
without in interface MutableFloatCollectionMutableFloatList withAll(FloatIterable elements)
withAll in interface MutableFloatCollectionMutableFloatList withoutAll(FloatIterable elements)
withoutAll in interface MutableFloatCollectiondefault MutableFloatList tap(FloatProcedure procedure)
tap in interface FloatIterabletap in interface FloatListtap in interface MutableFloatCollectiondefault MutableFloatList selectWithIndex(FloatIntPredicate predicate)
selectWithIndex in interface FloatListselectWithIndex in interface OrderedFloatIterableselectWithIndex in interface ReversibleFloatIterabledefault MutableFloatList rejectWithIndex(FloatIntPredicate predicate)
rejectWithIndex in interface FloatListrejectWithIndex in interface OrderedFloatIterablerejectWithIndex in interface ReversibleFloatIterable<V> MutableList<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterablecollect in interface FloatIterablecollect in interface FloatListcollect in interface MutableFloatCollectioncollect in interface OrderedFloatIterablecollect in interface ReversibleFloatIterabledefault <V> MutableList<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)
collectWithIndex in interface FloatListcollectWithIndex in interface OrderedFloatIterablecollectWithIndex in interface ReversibleFloatIterableMutableFloatList reverseThis()
MutableFloatList toReversed()
toReversed in interface FloatListtoReversed in interface ReversibleFloatIterableMutableFloatList distinct()
distinct in interface FloatListdistinct in interface ReversibleFloatIterableMutableFloatList sortThis()
default MutableFloatList sortThis(FloatComparator comparator)
default <T> MutableFloatList sortThisBy(FloatToObjectFunction<T> function)
function.default <T> MutableFloatList sortThisBy(FloatToObjectFunction<T> function, Comparator<? super T> comparator)
function using the provided comparator.default MutableFloatList shuffleThis()
java.util.Random as the source of randomness.default MutableFloatList shuffleThis(Random rnd)
MutableFloatList asUnmodifiable()
asUnmodifiable in interface MutableFloatCollectionMutableFloatList asSynchronized()
asSynchronized in interface MutableFloatCollectionImmutableFloatList toImmutable()
toImmutable in interface FloatListtoImmutable in interface MutableFloatCollectionMutableFloatList subList(int fromIndex, int toIndex)
subList in interface FloatListList.subList(int fromIndex, int toIndex)default MutableList<FloatFloatPair> zipFloat(FloatIterable iterable)
MutableList formed from this MutableFloatList and another FloatList by
combining corresponding elements in pairs. If one of the two FloatLists is longer than the other, its
remaining elements are ignored.default <T> MutableList<FloatObjectPair<T>> zip(Iterable<T> list)
MutableList formed from this MutableFloatList 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.default MutableFloatList newEmpty()
newEmpty in interface MutableFloatCollectionCopyright © 2004–2022. All rights reserved.