FloatBag, FloatIterable, MutableFloatCollection, PrimitiveIterableFloatHashBag, SynchronizedFloatBag, UnmodifiableFloatBagpublic interface MutableFloatBag extends MutableFloatCollection, FloatBag
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
addOccurrences(float item,
              int occurrences) | 
|
MutableFloatBag | 
asSynchronized() | 
|
MutableFloatBag | 
asUnmodifiable() | 
|
MutableList<FloatIntPair> | 
bottomOccurrences(int count) | 
 Returns the  
count least frequently occurring items. | 
<V> MutableBag<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 MutableFloatBag | 
newEmpty() | 
 Creates a new empty mutable version of the same Bag type. 
 | 
MutableFloatBag | 
reject(FloatPredicate predicate) | 
 Returns a new FloatIterable with all of the elements in the FloatIterable that
 return false for the specified predicate. 
 | 
boolean | 
removeOccurrences(float item,
                 int occurrences) | 
|
MutableFloatBag | 
select(FloatPredicate predicate) | 
 Returns a new FloatIterable with all of the elements in the FloatIterable that
 return true for the specified predicate. 
 | 
MutableFloatBag | 
selectByOccurrences(IntPredicate predicate) | 
 Returns all elements of the bag that have a number of occurrences that satisfy the predicate. 
 | 
default MutableFloatBag | 
selectDuplicates() | 
 Returns all elements of the bag that have more than one occurrence. 
 | 
MutableFloatSet | 
selectUnique() | 
 Returns all elements of the bag that have exactly one occurrence. 
 | 
default MutableFloatBag | 
tap(FloatProcedure procedure) | 
|
ImmutableFloatBag | 
toImmutable() | 
 Returns an immutable copy of this bag. 
 | 
MutableList<FloatIntPair> | 
topOccurrences(int count) | 
 Returns the  
count most frequently occurring items. | 
MutableFloatBag | 
with(float element) | 
|
MutableFloatBag | 
withAll(FloatIterable elements) | 
|
MutableFloatBag | 
without(float element) | 
|
MutableFloatBag | 
withoutAll(FloatIterable elements) | 
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toStringOfItemToCountallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid addOccurrences(float item,
                    int occurrences)
boolean removeOccurrences(float item,
                          int occurrences)
default MutableFloatBag tap(FloatProcedure procedure)
tap in interface FloatBagtap in interface FloatIterabletap in interface MutableFloatCollectionMutableFloatBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface FloatBagdefault MutableFloatBag selectDuplicates()
selectDuplicates in interface FloatBagMutableFloatSet selectUnique()
selectUnique in interface FloatBagMutableList<FloatIntPair> topOccurrences(int count)
count most frequently occurring items.
 In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last
 item will be returned.topOccurrences in interface FloatBagMutableList<FloatIntPair> bottomOccurrences(int count)
count least frequently occurring items.
 In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last
 item will be returned.bottomOccurrences in interface FloatBagMutableFloatBag select(FloatPredicate predicate)
FloatIterableselect in interface FloatBagselect in interface FloatIterableselect in interface MutableFloatCollectionMutableFloatBag reject(FloatPredicate predicate)
FloatIterablereject in interface FloatBagreject in interface FloatIterablereject in interface MutableFloatCollection<V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterablecollect in interface FloatBagcollect in interface FloatIterablecollect in interface MutableFloatCollectionMutableFloatBag with(float element)
with in interface MutableFloatCollectionMutableFloatBag without(float element)
without in interface MutableFloatCollectionMutableFloatBag withAll(FloatIterable elements)
withAll in interface MutableFloatCollectionMutableFloatBag withoutAll(FloatIterable elements)
withoutAll in interface MutableFloatCollectionMutableFloatBag asUnmodifiable()
asUnmodifiable in interface MutableFloatCollectionMutableFloatBag asSynchronized()
asSynchronized in interface MutableFloatCollectionImmutableFloatBag toImmutable()
toImmutable in interface FloatBagtoImmutable in interface MutableFloatCollectiondefault MutableFloatBag newEmpty()
newEmpty in interface MutableFloatCollectionCopyright © 2004–2020. All rights reserved.