Serializable, FloatBag, MutableFloatBag, MutableFloatCollection, FloatIterable, PrimitiveIterable@NotThreadSafe public final class UnmodifiableFloatBag extends AbstractUnmodifiableFloatCollection implements MutableFloatBag
| Constructor | Description | 
|---|---|
| UnmodifiableFloatBag(MutableFloatBag bag) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | addOccurrences(float item,
              int occurrences) | |
| MutableFloatBag | asSynchronized() | |
| MutableFloatBag | asUnmodifiable() | |
| MutableList<FloatIntPair> | bottomOccurrences(int count) | Returns the  countleast 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. | 
| boolean | equals(Object otherBag) | Follows the same general contract as  Bag.equals(Object). | 
| void | forEachWithOccurrences(FloatIntProcedure procedure) | For each distinct item, with the number of occurrences, execute the specified procedure. | 
| int | hashCode() | Follows the same general contract as  Bag.hashCode(). | 
| int | occurrencesOf(float item) | The occurrences of a distinct item in the bag. | 
| 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. | 
| int | sizeDistinct() | The size of the Bag when counting only distinct elements. | 
| ImmutableFloatBag | toImmutable() | Returns an immutable copy of this bag. | 
| MutableList<FloatIntPair> | topOccurrences(int count) | Returns the  countmost frequently occurring items. | 
| UnmodifiableFloatBag | with(float element) | |
| UnmodifiableFloatBag | withAll(FloatIterable elements) | |
| UnmodifiableFloatBag | without(float element) | |
| UnmodifiableFloatBag | withoutAll(FloatIterable elements) | 
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, floatIterator, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringallSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, retainAll, retainAllappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableFloatBag(MutableFloatBag bag)
public UnmodifiableFloatBag with(float element)
with in interface MutableFloatBagwith in interface MutableFloatCollectionwith in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatBag without(float element)
without in interface MutableFloatBagwithout in interface MutableFloatCollectionwithout in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatBag withAll(FloatIterable elements)
withAll in interface MutableFloatBagwithAll in interface MutableFloatCollectionwithAll in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatBag withoutAll(FloatIterable elements)
withoutAll in interface MutableFloatBagwithoutAll in interface MutableFloatCollectionwithoutAll in class AbstractUnmodifiableFloatCollectionpublic void addOccurrences(float item,
                           int occurrences)
addOccurrences in interface MutableFloatBagpublic boolean removeOccurrences(float item,
                                 int occurrences)
removeOccurrences in interface MutableFloatBagpublic int sizeDistinct()
FloatBagsizeDistinct in interface FloatBagpublic int occurrencesOf(float item)
FloatBagoccurrencesOf in interface FloatBagpublic void forEachWithOccurrences(FloatIntProcedure procedure)
FloatBagforEachWithOccurrences in interface FloatBagpublic MutableFloatBag selectByOccurrences(IntPredicate predicate)
MutableFloatBagselectByOccurrences in interface FloatBagselectByOccurrences in interface MutableFloatBagpublic MutableList<FloatIntPair> topOccurrences(int count)
MutableFloatBagcount 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 FloatBagtopOccurrences in interface MutableFloatBagpublic MutableList<FloatIntPair> bottomOccurrences(int count)
MutableFloatBagcount 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 FloatBagbottomOccurrences in interface MutableFloatBagpublic MutableFloatBag select(FloatPredicate predicate)
FloatIterableselect in interface FloatBagselect in interface FloatIterableselect in interface MutableFloatBagselect in interface MutableFloatCollectionselect in class AbstractUnmodifiableFloatCollectionpublic MutableFloatBag reject(FloatPredicate predicate)
FloatIterablereject in interface FloatBagreject in interface FloatIterablereject in interface MutableFloatBagreject in interface MutableFloatCollectionreject in class AbstractUnmodifiableFloatCollectionpublic <V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterablecollect in interface FloatBagcollect in interface FloatIterablecollect in interface MutableFloatBagcollect in interface MutableFloatCollectioncollect in class AbstractUnmodifiableFloatCollectionpublic boolean equals(Object otherBag)
FloatBagBag.equals(Object).public int hashCode()
FloatBagBag.hashCode().public MutableFloatBag asUnmodifiable()
asUnmodifiable in interface MutableFloatBagasUnmodifiable in interface MutableFloatCollectionasUnmodifiable in class AbstractUnmodifiableFloatCollectionpublic MutableFloatBag asSynchronized()
asSynchronized in interface MutableFloatBagasSynchronized in interface MutableFloatCollectionasSynchronized in class AbstractUnmodifiableFloatCollectionpublic ImmutableFloatBag toImmutable()
MutableFloatBagtoImmutable in interface FloatBagtoImmutable in interface MutableFloatBagtoImmutable in interface MutableFloatCollectiontoImmutable in class AbstractUnmodifiableFloatCollectionCopyright © 2004–2017. All rights reserved.