public interface FloatList extends ReversibleFloatIterable
| Modifier and Type | Method and Description |
|---|---|
int |
binarySearch(float value) |
<V> ListIterable<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> ListIterable<V> |
collectWithIndex(FloatIntToObjectFunction<? extends V> function)
Returns a new ListIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
FloatList |
distinct() |
double |
dotProduct(FloatList list) |
boolean |
equals(Object o)
Follows the same general contract as
List.equals(Object). |
default void |
forEachInBoth(FloatList other,
FloatFloatProcedure procedure)
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.
|
float |
get(int index) |
int |
hashCode()
Follows the same general contract as
List.hashCode(). |
int |
lastIndexOf(float value) |
FloatList |
reject(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
default FloatList |
rejectWithIndex(FloatIntPredicate predicate)
Returns a new FloatList excluding all elements with corresponding indexes matching the specified predicate.
|
FloatList |
select(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified predicate.
|
default FloatList |
selectWithIndex(FloatIntPredicate predicate)
Returns a new FloatList including all elements with corresponding indexes matching the specified predicate.
|
FloatList |
subList(int fromIndex,
int toIndex) |
default FloatList |
tap(FloatProcedure procedure) |
ImmutableFloatList |
toImmutable()
Returns an immutable copy of this list.
|
FloatList |
toReversed() |
default <T> ListIterable<FloatObjectPair<T>> |
zip(Iterable<T> iterable)
Returns a
ListIterable formed from this FloatList and a ListIterable by
combining corresponding elements in pairs. |
default ListIterable<FloatFloatPair> |
zipFloat(FloatIterable iterable)
Returns a
ListIterable formed from this FloatList and another FloatList by
combining corresponding elements in pairs. |
asReversed, 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, floatIterator, 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, toStringfloat get(int index)
double dotProduct(FloatList list)
int binarySearch(float value)
int lastIndexOf(float value)
FloatList select(FloatPredicate predicate)
FloatIterableselect in interface FloatIterableselect in interface OrderedFloatIterableselect in interface ReversibleFloatIterableFloatList reject(FloatPredicate predicate)
FloatIterablereject in interface FloatIterablereject in interface OrderedFloatIterablereject in interface ReversibleFloatIterabledefault FloatList tap(FloatProcedure procedure)
tap in interface FloatIterabledefault void forEachInBoth(FloatList other, FloatFloatProcedure procedure)
default FloatList selectWithIndex(FloatIntPredicate predicate)
selectWithIndex in interface OrderedFloatIterableselectWithIndex in interface ReversibleFloatIterabledefault FloatList rejectWithIndex(FloatIntPredicate predicate)
rejectWithIndex in interface OrderedFloatIterablerejectWithIndex in interface ReversibleFloatIterable<V> ListIterable<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterablecollect in interface FloatIterablecollect in interface OrderedFloatIterablecollect in interface ReversibleFloatIterabledefault <V> ListIterable<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedFloatIterablecollectWithIndex in interface ReversibleFloatIterableboolean equals(Object o)
List.equals(Object).int hashCode()
List.hashCode().ImmutableFloatList toImmutable()
FloatList distinct()
distinct in interface ReversibleFloatIterableFloatList toReversed()
toReversed in interface ReversibleFloatIterableFloatList subList(int fromIndex, int toIndex)
List.subList(int fromIndex, int toIndex)default ListIterable<FloatFloatPair> zipFloat(FloatIterable iterable)
ListIterable formed from this FloatList 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> ListIterable<FloatObjectPair<T>> zip(Iterable<T> iterable)
ListIterable formed from this FloatList 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.Copyright © 2004–2023. All rights reserved.