FloatIterable
, OrderedFloatIterable
, PrimitiveIterable
, ReversibleFloatIterable
ImmutableFloatList
, MutableFloatList
FloatArrayList
, SynchronizedFloatList
, UnmodifiableFloatList
public interface FloatList extends ReversibleFloatIterable
Modifier and Type | Method | 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) . |
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.
|
FloatList |
select(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for 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. |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, floatIterator, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
float get(int index)
double dotProduct(FloatList list)
int binarySearch(float value)
int lastIndexOf(float value)
FloatList select(FloatPredicate predicate)
FloatIterable
select
in interface FloatIterable
select
in interface OrderedFloatIterable
select
in interface ReversibleFloatIterable
FloatList reject(FloatPredicate predicate)
FloatIterable
reject
in interface FloatIterable
reject
in interface OrderedFloatIterable
reject
in interface ReversibleFloatIterable
default FloatList tap(FloatProcedure procedure)
tap
in interface FloatIterable
<V> ListIterable<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterable
collect
in interface FloatIterable
collect
in interface OrderedFloatIterable
collect
in interface ReversibleFloatIterable
default <V> ListIterable<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedFloatIterable
collectWithIndex
in interface ReversibleFloatIterable
boolean equals(Object o)
List.equals(Object)
.int hashCode()
List.hashCode()
.ImmutableFloatList toImmutable()
FloatList distinct()
distinct
in interface ReversibleFloatIterable
FloatList toReversed()
toReversed
in interface ReversibleFloatIterable
FloatList 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 FloatList
s 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–2019. All rights reserved.