@NotThreadSafe public final class UnmodifiableFloatBag extends AbstractUnmodifiableFloatCollection implements com.gs.collections.api.bag.primitive.MutableFloatBag
| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(float item,
int occurrences) |
com.gs.collections.api.LazyFloatIterable |
asLazy() |
com.gs.collections.api.bag.primitive.MutableFloatBag |
asSynchronized() |
com.gs.collections.api.bag.primitive.MutableFloatBag |
asUnmodifiable() |
<V> com.gs.collections.api.bag.MutableBag<V> |
collect(com.gs.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function) |
boolean |
equals(java.lang.Object otherBag)
Follows the same general contract as
Bag.equals(Object). |
void |
forEachWithOccurrences(com.gs.collections.api.block.procedure.primitive.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(). |
<T> T |
injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super T,? extends T> function) |
int |
occurrencesOf(float item)
The occurrences of a distinct item in the bag.
|
com.gs.collections.api.bag.primitive.MutableFloatBag |
reject(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
removeOccurrences(float item,
int occurrences) |
com.gs.collections.api.bag.primitive.MutableFloatBag |
select(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
int |
sizeDistinct()
The size of the Bag when counting only distinct elements.
|
com.gs.collections.api.bag.primitive.ImmutableFloatBag |
toImmutable()
Returns an immutable copy of this bag.
|
UnmodifiableFloatBag |
with(float element) |
UnmodifiableFloatBag |
withAll(com.gs.collections.api.FloatIterable elements) |
UnmodifiableFloatBag |
without(float element) |
UnmodifiableFloatBag |
withoutAll(com.gs.collections.api.FloatIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, floatIterator, forEach, getFloatCollection, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, floatIterator, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic UnmodifiableFloatBag with(float element)
with in interface com.gs.collections.api.bag.primitive.MutableFloatBagwith in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionwith in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatBag without(float element)
without in interface com.gs.collections.api.bag.primitive.MutableFloatBagwithout in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionwithout in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatBag withAll(com.gs.collections.api.FloatIterable elements)
withAll in interface com.gs.collections.api.bag.primitive.MutableFloatBagwithAll in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionwithAll in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatBag withoutAll(com.gs.collections.api.FloatIterable elements)
withoutAll in interface com.gs.collections.api.bag.primitive.MutableFloatBagwithoutAll in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionwithoutAll in class AbstractUnmodifiableFloatCollectionpublic void addOccurrences(float item,
int occurrences)
addOccurrences in interface com.gs.collections.api.bag.primitive.MutableFloatBagpublic boolean removeOccurrences(float item,
int occurrences)
removeOccurrences in interface com.gs.collections.api.bag.primitive.MutableFloatBagpublic int sizeDistinct()
com.gs.collections.api.bag.primitive.FloatBagsizeDistinct in interface com.gs.collections.api.bag.primitive.FloatBagpublic int occurrencesOf(float item)
com.gs.collections.api.bag.primitive.FloatBagoccurrencesOf in interface com.gs.collections.api.bag.primitive.FloatBagpublic void forEachWithOccurrences(com.gs.collections.api.block.procedure.primitive.FloatIntProcedure procedure)
com.gs.collections.api.bag.primitive.FloatBagforEachWithOccurrences in interface com.gs.collections.api.bag.primitive.FloatBagpublic com.gs.collections.api.bag.primitive.MutableFloatBag select(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
select in interface com.gs.collections.api.bag.primitive.FloatBagselect in interface com.gs.collections.api.bag.primitive.MutableFloatBagselect in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionselect in interface com.gs.collections.api.FloatIterableselect in class AbstractUnmodifiableFloatCollectionpublic com.gs.collections.api.bag.primitive.MutableFloatBag reject(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
reject in interface com.gs.collections.api.bag.primitive.FloatBagreject in interface com.gs.collections.api.bag.primitive.MutableFloatBagreject in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionreject in interface com.gs.collections.api.FloatIterablereject in class AbstractUnmodifiableFloatCollectionpublic <V> com.gs.collections.api.bag.MutableBag<V> collect(com.gs.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.bag.primitive.FloatBagcollect in interface com.gs.collections.api.bag.primitive.MutableFloatBagcollect in interface com.gs.collections.api.collection.primitive.MutableFloatCollectioncollect in interface com.gs.collections.api.FloatIterablecollect in class AbstractUnmodifiableFloatCollectionpublic boolean equals(java.lang.Object otherBag)
com.gs.collections.api.bag.primitive.FloatBagBag.equals(Object).equals in interface com.gs.collections.api.bag.primitive.FloatBagequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.bag.primitive.FloatBagBag.hashCode().hashCode in interface com.gs.collections.api.bag.primitive.FloatBaghashCode in class java.lang.Objectpublic com.gs.collections.api.LazyFloatIterable asLazy()
asLazy in interface com.gs.collections.api.FloatIterableasLazy in class AbstractUnmodifiableFloatCollectionpublic com.gs.collections.api.bag.primitive.MutableFloatBag asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.bag.primitive.MutableFloatBagasUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionasUnmodifiable in class AbstractUnmodifiableFloatCollectionpublic com.gs.collections.api.bag.primitive.MutableFloatBag asSynchronized()
asSynchronized in interface com.gs.collections.api.bag.primitive.MutableFloatBagasSynchronized in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionasSynchronized in class AbstractUnmodifiableFloatCollectionpublic com.gs.collections.api.bag.primitive.ImmutableFloatBag toImmutable()
com.gs.collections.api.bag.primitive.MutableFloatBagtoImmutable in interface com.gs.collections.api.bag.primitive.FloatBagtoImmutable in interface com.gs.collections.api.bag.primitive.MutableFloatBagtoImmutable in interface com.gs.collections.api.collection.primitive.MutableFloatCollectiontoImmutable in class AbstractUnmodifiableFloatCollectionpublic <T> T injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super T,? extends T> function)
injectInto in interface com.gs.collections.api.FloatIterableinjectInto in class AbstractUnmodifiableFloatCollection