Interface MutableFloatCollection
-
- All Superinterfaces:
FloatIterable,PrimitiveIterable
- All Known Subinterfaces:
MutableFloatBag,MutableFloatList,MutableFloatSet
public interface MutableFloatCollection extends FloatIterable
This file was automatically generated from template file mutablePrimitiveCollection.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanadd(float element)booleanaddAll(float... source)booleanaddAll(FloatIterable source)MutableFloatCollectionasSynchronized()MutableFloatCollectionasUnmodifiable()voidclear()<V> MutableCollection<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.MutableFloatIteratorfloatIterator()Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.default MutableFloatCollectionnewEmpty()Creates a new empty mutable version of the same collection type.MutableFloatCollectionreject(FloatPredicate predicate)Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.booleanremove(float value)booleanremoveAll(float... source)booleanremoveAll(FloatIterable source)default booleanremoveIf(FloatPredicate predicate)booleanretainAll(float... source)booleanretainAll(FloatIterable elements)MutableFloatCollectionselect(FloatPredicate predicate)Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.default MutableFloatCollectiontap(FloatProcedure procedure)ImmutableFloatCollectiontoImmutable()MutableFloatCollectionwith(float element)MutableFloatCollectionwithAll(FloatIterable elements)MutableFloatCollectionwithout(float element)MutableFloatCollectionwithoutAll(FloatIterable elements)-
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.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Method Detail
-
floatIterator
MutableFloatIterator floatIterator()
Description copied from interface:FloatIterableReturns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.- Specified by:
floatIteratorin interfaceFloatIterable
-
add
boolean add(float element)
-
addAll
boolean addAll(float... source)
-
addAll
boolean addAll(FloatIterable source)
-
remove
boolean remove(float value)
-
removeAll
boolean removeAll(FloatIterable source)
-
removeAll
boolean removeAll(float... source)
-
removeIf
default boolean removeIf(FloatPredicate predicate)
- Since:
- 9.1
-
retainAll
boolean retainAll(FloatIterable elements)
- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
retainAll
boolean retainAll(float... source)
- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
clear
void clear()
-
select
MutableFloatCollection 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
-
reject
MutableFloatCollection 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
-
collect
<V> MutableCollection<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
-
with
MutableFloatCollection with(float element)
-
without
MutableFloatCollection without(float element)
-
withAll
MutableFloatCollection withAll(FloatIterable elements)
-
withoutAll
MutableFloatCollection withoutAll(FloatIterable elements)
-
asUnmodifiable
MutableFloatCollection asUnmodifiable()
-
asSynchronized
MutableFloatCollection asSynchronized()
-
toImmutable
ImmutableFloatCollection toImmutable()
-
tap
default MutableFloatCollection tap(FloatProcedure procedure)
- Specified by:
tapin interfaceFloatIterable- Since:
- 9.0.
-
newEmpty
default MutableFloatCollection newEmpty()
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-
-