@ThreadSafe public final class SynchronizedFloatBag extends AbstractSynchronizedFloatCollection implements MutableFloatBag
MutableFloatBag. It is imperative that the user manually synchronize on the collection when iterating over it using the
FloatIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveBag.stg.
MutableFloatBag.asSynchronized(),
MutableBag.asSynchronized(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(float item,
int occurrences) |
LazyFloatIterable |
asLazy() |
MutableFloatBag |
asSynchronized() |
MutableFloatBag |
asUnmodifiable() |
<V> MutableBag<V> |
collect(FloatToObjectFunction<? extends V> function) |
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(). |
<T> T |
injectInto(T injectedValue,
ObjectFloatToObjectFunction<? super T,? extends T> function) |
int |
occurrencesOf(float item)
The occurrences of a distinct item in the bag.
|
MutableFloatBag |
reject(FloatPredicate predicate) |
boolean |
removeOccurrences(float item,
int occurrences) |
MutableFloatBag |
select(FloatPredicate predicate) |
int |
sizeDistinct()
The size of the Bag when counting only distinct elements.
|
ImmutableFloatBag |
toImmutable()
Returns an immutable copy of this bag.
|
SynchronizedFloatBag |
with(float element) |
SynchronizedFloatBag |
withAll(FloatIterable elements) |
SynchronizedFloatBag |
without(float element) |
SynchronizedFloatBag |
withoutAll(FloatIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, floatIterator, forEach, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringadd, 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, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedFloatBag with(float element)
with in interface MutableFloatBagwith in interface MutableFloatCollectionwith in class AbstractSynchronizedFloatCollectionpublic SynchronizedFloatBag without(float element)
without in interface MutableFloatBagwithout in interface MutableFloatCollectionwithout in class AbstractSynchronizedFloatCollectionpublic SynchronizedFloatBag withAll(FloatIterable elements)
withAll in interface MutableFloatBagwithAll in interface MutableFloatCollectionwithAll in class AbstractSynchronizedFloatCollectionpublic SynchronizedFloatBag withoutAll(FloatIterable elements)
withoutAll in interface MutableFloatBagwithoutAll in interface MutableFloatCollectionwithoutAll in class AbstractSynchronizedFloatCollectionpublic 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 select(FloatPredicate predicate)
select in interface FloatBagselect in interface MutableFloatBagselect in interface MutableFloatCollectionselect in interface FloatIterableselect in class AbstractSynchronizedFloatCollectionpublic MutableFloatBag reject(FloatPredicate predicate)
reject in interface FloatBagreject in interface MutableFloatBagreject in interface MutableFloatCollectionreject in interface FloatIterablereject in class AbstractSynchronizedFloatCollectionpublic <V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)
collect in interface FloatBagcollect in interface MutableFloatBagcollect in interface MutableFloatCollectioncollect in interface FloatIterablecollect in class AbstractSynchronizedFloatCollectionpublic boolean equals(Object otherBag)
FloatBagBag.equals(Object).public int hashCode()
FloatBagBag.hashCode().public LazyFloatIterable asLazy()
asLazy in interface FloatIterableasLazy in class AbstractSynchronizedFloatCollectionpublic MutableFloatBag asUnmodifiable()
asUnmodifiable in interface MutableFloatBagasUnmodifiable in interface MutableFloatCollectionasUnmodifiable in class AbstractSynchronizedFloatCollectionpublic MutableFloatBag asSynchronized()
asSynchronized in interface MutableFloatBagasSynchronized in interface MutableFloatCollectionasSynchronized in class AbstractSynchronizedFloatCollectionpublic ImmutableFloatBag toImmutable()
MutableFloatBagtoImmutable in interface FloatBagtoImmutable in interface MutableFloatBagtoImmutable in interface MutableFloatCollectiontoImmutable in class AbstractSynchronizedFloatCollectionpublic <T> T injectInto(T injectedValue,
ObjectFloatToObjectFunction<? super T,? extends T> function)
injectInto in interface FloatIterableinjectInto in class AbstractSynchronizedFloatCollectionCopyright © 2004–2017. All rights reserved.