Class SynchronizedFloatBag
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection
org.eclipse.collections.impl.bag.mutable.primitive.SynchronizedFloatBag
- All Implemented Interfaces:
Serializable,FloatBag,MutableFloatBag,MutableFloatCollection,FloatIterable,PrimitiveIterable
public class SynchronizedFloatBag
extends AbstractSynchronizedFloatCollection
implements MutableFloatBag
A synchronized view of a
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.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOccurrences(float item, int occurrences) asLazy()bottomOccurrences(int count) <V> MutableBag<V>collect(FloatToObjectFunction<? extends V> function) booleanvoidforEachWithOccurrences(FloatIntProcedure procedure) inthashCode()newEmpty()intoccurrencesOf(float item) reject(FloatPredicate predicate) booleanremoveOccurrences(float item, int occurrences) select(FloatPredicate predicate) selectByOccurrences(IntPredicate predicate) inttopOccurrences(int count) with(float element) withAll(FloatIterable elements) without(float element) withoutAll(FloatIterable elements) Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, floatIterator, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.bag.primitive.FloatBag
toStringOfItemToCountMethods inherited from interface org.eclipse.collections.api.FloatIterable
allSatisfy, anySatisfy, 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.bag.primitive.MutableFloatBag
selectDuplicates, tapMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableFloatCollection
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
SynchronizedFloatBag
-
SynchronizedFloatBag
-
-
Method Details
-
with
- Specified by:
within interfaceMutableFloatBag- Specified by:
within interfaceMutableFloatCollection- Overrides:
within classAbstractSynchronizedFloatCollection
-
without
- Specified by:
withoutin interfaceMutableFloatBag- Specified by:
withoutin interfaceMutableFloatCollection- Overrides:
withoutin classAbstractSynchronizedFloatCollection
-
withAll
- Specified by:
withAllin interfaceMutableFloatBag- Specified by:
withAllin interfaceMutableFloatCollection- Overrides:
withAllin classAbstractSynchronizedFloatCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableFloatBag- Specified by:
withoutAllin interfaceMutableFloatCollection- Overrides:
withoutAllin classAbstractSynchronizedFloatCollection
-
addOccurrences
public void addOccurrences(float item, int occurrences) - Specified by:
addOccurrencesin interfaceMutableFloatBag
-
removeOccurrences
public boolean removeOccurrences(float item, int occurrences) - Specified by:
removeOccurrencesin interfaceMutableFloatBag
-
sizeDistinct
public int sizeDistinct()- Specified by:
sizeDistinctin interfaceFloatBag
-
occurrencesOf
public int occurrencesOf(float item) - Specified by:
occurrencesOfin interfaceFloatBag
-
forEachWithOccurrences
- Specified by:
forEachWithOccurrencesin interfaceFloatBag
-
select
- Specified by:
selectin interfaceFloatBag- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceMutableFloatBag- Specified by:
selectin interfaceMutableFloatCollection- Overrides:
selectin classAbstractSynchronizedFloatCollection
-
selectByOccurrences
- Specified by:
selectByOccurrencesin interfaceFloatBag- Specified by:
selectByOccurrencesin interfaceMutableFloatBag
-
selectUnique
- Specified by:
selectUniquein interfaceFloatBag- Specified by:
selectUniquein interfaceMutableFloatBag
-
topOccurrences
- Specified by:
topOccurrencesin interfaceFloatBag- Specified by:
topOccurrencesin interfaceMutableFloatBag
-
bottomOccurrences
- Specified by:
bottomOccurrencesin interfaceFloatBag- Specified by:
bottomOccurrencesin interfaceMutableFloatBag
-
reject
- Specified by:
rejectin interfaceFloatBag- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceMutableFloatBag- Specified by:
rejectin interfaceMutableFloatCollection- Overrides:
rejectin classAbstractSynchronizedFloatCollection
-
collect
- Specified by:
collectin interfaceFloatBag- Specified by:
collectin interfaceFloatIterable- Specified by:
collectin interfaceMutableFloatBag- Specified by:
collectin interfaceMutableFloatCollection- Overrides:
collectin classAbstractSynchronizedFloatCollection
-
equals
-
hashCode
public int hashCode() -
asLazy
- Specified by:
asLazyin interfaceFloatIterable- Overrides:
asLazyin classAbstractSynchronizedFloatCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatBag- Specified by:
asUnmodifiablein interfaceMutableFloatCollection- Overrides:
asUnmodifiablein classAbstractSynchronizedFloatCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatBag- Specified by:
asSynchronizedin interfaceMutableFloatCollection- Overrides:
asSynchronizedin classAbstractSynchronizedFloatCollection
-
toImmutable
- Specified by:
toImmutablein interfaceFloatBag- Specified by:
toImmutablein interfaceMutableFloatBag- Specified by:
toImmutablein interfaceMutableFloatCollection- Overrides:
toImmutablein classAbstractSynchronizedFloatCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableFloatBag- Specified by:
newEmptyin interfaceMutableFloatCollection- Since:
- 9.2.
-