Interface ImmutableFloatList
-
- All Superinterfaces:
FloatIterable
,FloatList
,ImmutableFloatCollection
,OrderedFloatIterable
,PrimitiveIterable
,ReversibleFloatIterable
- All Known Implementing Classes:
ImmutableFloatArrayList
,ImmutableFloatEmptyList
,ImmutableFloatSingletonList
public interface ImmutableFloatList extends ImmutableFloatCollection, FloatList
This file was automatically generated from template file immutablePrimitiveList.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <V> ImmutableList<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> ImmutableList<V>
collectWithIndex(FloatIntToObjectFunction<? extends V> function)
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.ImmutableFloatList
distinct()
ImmutableFloatList
newWith(float element)
ImmutableFloatList
newWithAll(FloatIterable elements)
ImmutableFloatList
newWithout(float element)
ImmutableFloatList
newWithoutAll(FloatIterable elements)
ImmutableFloatList
reject(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.default ImmutableFloatList
rejectWithIndex(FloatIntPredicate predicate)
Returns a new ImmutableFloatList excluding all elements with corresponding indexes matching the specified predicate.ImmutableFloatList
select(FloatPredicate predicate)
Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.default ImmutableFloatList
selectWithIndex(FloatIntPredicate predicate)
Returns a new ImmutableFloatList including all elements with corresponding indexes matching the specified predicate.ImmutableFloatList
subList(int fromIndex, int toIndex)
default ImmutableFloatList
tap(FloatProcedure procedure)
ImmutableFloatList
toReversed()
default <T> ImmutableList<FloatObjectPair<T>>
zip(java.lang.Iterable<T> iterable)
Returns anImmutableList
formed from thisImmutableFloatList
and aListIterable
by combining corresponding elements in pairs.default ImmutableList<FloatFloatPair>
zipFloat(FloatIterable iterable)
Returns anImmutableList
formed from thisImmutableFloatList
and anotherFloatList
by 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, 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.list.primitive.FloatList
binarySearch, dotProduct, equals, forEachInBoth, get, hashCode, lastIndexOf, toImmutable
-
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
-
select
ImmutableFloatList select(FloatPredicate predicate)
Description copied from interface:FloatIterable
Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.- Specified by:
select
in interfaceFloatIterable
- Specified by:
select
in interfaceFloatList
- Specified by:
select
in interfaceImmutableFloatCollection
- Specified by:
select
in interfaceOrderedFloatIterable
- Specified by:
select
in interfaceReversibleFloatIterable
-
reject
ImmutableFloatList reject(FloatPredicate predicate)
Description copied from interface:FloatIterable
Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.- Specified by:
reject
in interfaceFloatIterable
- Specified by:
reject
in interfaceFloatList
- Specified by:
reject
in interfaceImmutableFloatCollection
- Specified by:
reject
in interfaceOrderedFloatIterable
- Specified by:
reject
in interfaceReversibleFloatIterable
-
tap
default ImmutableFloatList tap(FloatProcedure procedure)
- Specified by:
tap
in interfaceFloatIterable
- Specified by:
tap
in interfaceFloatList
- Specified by:
tap
in interfaceImmutableFloatCollection
- Since:
- 9.0.
-
selectWithIndex
default ImmutableFloatList selectWithIndex(FloatIntPredicate predicate)
Returns a new ImmutableFloatList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndex
in interfaceFloatList
- Specified by:
selectWithIndex
in interfaceOrderedFloatIterable
- Specified by:
selectWithIndex
in interfaceReversibleFloatIterable
- Since:
- 11.1.
-
rejectWithIndex
default ImmutableFloatList rejectWithIndex(FloatIntPredicate predicate)
Returns a new ImmutableFloatList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndex
in interfaceFloatList
- Specified by:
rejectWithIndex
in interfaceOrderedFloatIterable
- Specified by:
rejectWithIndex
in interfaceReversibleFloatIterable
- Since:
- 11.1.
-
collect
<V> ImmutableList<V> collect(FloatToObjectFunction<? extends V> function)
Description copied from interface:FloatIterable
Returns 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:
collect
in interfaceFloatIterable
- Specified by:
collect
in interfaceFloatList
- Specified by:
collect
in interfaceImmutableFloatCollection
- Specified by:
collect
in interfaceOrderedFloatIterable
- Specified by:
collect
in interfaceReversibleFloatIterable
-
collectWithIndex
default <V> ImmutableList<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)
Returns a new ImmutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceFloatList
- Specified by:
collectWithIndex
in interfaceOrderedFloatIterable
- Specified by:
collectWithIndex
in interfaceReversibleFloatIterable
- Since:
- 9.1.
-
newWith
ImmutableFloatList newWith(float element)
- Specified by:
newWith
in interfaceImmutableFloatCollection
-
newWithout
ImmutableFloatList newWithout(float element)
- Specified by:
newWithout
in interfaceImmutableFloatCollection
-
newWithAll
ImmutableFloatList newWithAll(FloatIterable elements)
- Specified by:
newWithAll
in interfaceImmutableFloatCollection
-
newWithoutAll
ImmutableFloatList newWithoutAll(FloatIterable elements)
- Specified by:
newWithoutAll
in interfaceImmutableFloatCollection
-
toReversed
ImmutableFloatList toReversed()
- Specified by:
toReversed
in interfaceFloatList
- Specified by:
toReversed
in interfaceReversibleFloatIterable
-
distinct
ImmutableFloatList distinct()
- Specified by:
distinct
in interfaceFloatList
- Specified by:
distinct
in interfaceReversibleFloatIterable
- Since:
- 6.0.
-
subList
ImmutableFloatList subList(int fromIndex, int toIndex)
-
zipFloat
default ImmutableList<FloatFloatPair> zipFloat(FloatIterable iterable)
Returns anImmutableList
formed from thisImmutableFloatList
and anotherFloatList
by combining corresponding elements in pairs. If one of the twoFloatList
s is longer than the other, its remaining elements are ignored.
-
zip
default <T> ImmutableList<FloatObjectPair<T>> zip(java.lang.Iterable<T> iterable)
Returns anImmutableList
formed from thisImmutableFloatList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.
-
-