Class SynchronizedFloatBooleanMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedFloatBooleanMap
-
- All Implemented Interfaces:
Serializable,BooleanIterable,BooleanValuesMap,FloatBooleanMap,MutableBooleanValuesMap,MutableFloatBooleanMap,PrimitiveIterable
public class SynchronizedFloatBooleanMap extends Object implements MutableFloatBooleanMap, Serializable
A synchronized view of aMutableFloatBooleanMap. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableBooleanIteratoras perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableFloatBooleanMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedFloatBooleanMap(MutableFloatBooleanMap map)SynchronizedFloatBooleanMap(MutableFloatBooleanMap map, Object newLock)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.BooleanIterable
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.BooleanValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatBooleanMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedFloatBooleanMap
public SynchronizedFloatBooleanMap(MutableFloatBooleanMap map)
-
SynchronizedFloatBooleanMap
public SynchronizedFloatBooleanMap(MutableFloatBooleanMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableBooleanValuesMap
-
put
public void put(float key, boolean value)- Specified by:
putin interfaceMutableFloatBooleanMap
-
putPair
public void putPair(FloatBooleanPair keyValuePair)
- Specified by:
putPairin interfaceMutableFloatBooleanMap
-
putAll
public void putAll(FloatBooleanMap map)
- Specified by:
putAllin interfaceMutableFloatBooleanMap
-
updateValues
public void updateValues(FloatBooleanToBooleanFunction function)
- Specified by:
updateValuesin interfaceMutableFloatBooleanMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKeyin interfaceMutableFloatBooleanMap
-
remove
public void remove(float key)
- Specified by:
removein interfaceMutableFloatBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(float key, boolean value)- Specified by:
removeKeyIfAbsentin interfaceMutableFloatBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(float key, boolean value)- Specified by:
getIfAbsentPutin interfaceMutableFloatBooleanMap
-
getAndPut
public boolean getAndPut(float key, boolean putValue, boolean defaultValue)- Specified by:
getAndPutin interfaceMutableFloatBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(float key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(float key, FloatToBooleanFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(float key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatBooleanMap
-
updateValue
public boolean updateValue(float key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)- Specified by:
updateValuein interfaceMutableFloatBooleanMap
-
get
public boolean get(float key)
- Specified by:
getin interfaceFloatBooleanMap
-
getIfAbsent
public boolean getIfAbsent(float key, boolean ifAbsent)- Specified by:
getIfAbsentin interfaceFloatBooleanMap
-
getOrThrow
public boolean getOrThrow(float key)
- Specified by:
getOrThrowin interfaceFloatBooleanMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKeyin interfaceFloatBooleanMap
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValuein interfaceBooleanValuesMap
-
forEachValue
public void forEachValue(BooleanProcedure procedure)
- Specified by:
forEachValuein interfaceBooleanValuesMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatBooleanMap
-
forEachKeyValue
public void forEachKeyValue(FloatBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatBooleanMap
-
allSatisfyKeyValue
public boolean allSatisfyKeyValue(FloatBooleanPredicate predicate)
- Specified by:
allSatisfyKeyValuein interfaceFloatBooleanMap- Since:
- 12.0
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatBooleanMap
-
keyValuesView
public RichIterable<FloatBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatBooleanMap
-
select
public MutableFloatBooleanMap select(FloatBooleanPredicate predicate)
- Specified by:
selectin interfaceFloatBooleanMap- Specified by:
selectin interfaceMutableFloatBooleanMap
-
reject
public MutableFloatBooleanMap reject(FloatBooleanPredicate predicate)
- Specified by:
rejectin interfaceFloatBooleanMap- Specified by:
rejectin interfaceMutableFloatBooleanMap
-
booleanIterator
public MutableBooleanIterator booleanIterator()
This must be manually synchronized by the developer.- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
each
public void each(BooleanProcedure procedure)
- Specified by:
eachin interfaceBooleanIterable- Since:
- 7.0.
-
count
public int count(BooleanPredicate predicate)
- Specified by:
countin interfaceBooleanIterable
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
- Specified by:
anySatisfyin interfaceBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
- Specified by:
allSatisfyin interfaceBooleanIterable
-
noneSatisfy
public boolean noneSatisfy(BooleanPredicate predicate)
- Specified by:
noneSatisfyin interfaceBooleanIterable
-
select
public MutableBooleanBag select(BooleanPredicate predicate)
- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceBooleanValuesMap- Specified by:
selectin interfaceMutableBooleanValuesMap
-
reject
public MutableBooleanBag reject(BooleanPredicate predicate)
- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceBooleanValuesMap- Specified by:
rejectin interfaceMutableBooleanValuesMap
-
collect
public <V> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceBooleanValuesMap- Specified by:
collectin interfaceMutableBooleanValuesMap
-
detectIfNone
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
- Specified by:
detectIfNonein interfaceBooleanIterable
-
toArray
public boolean[] toArray()
- Specified by:
toArrayin interfaceBooleanIterable
-
toArray
public boolean[] toArray(boolean[] target)
- Specified by:
toArrayin interfaceBooleanIterable
-
contains
public boolean contains(boolean value)
- Specified by:
containsin interfaceBooleanIterable
-
containsAll
public boolean containsAll(boolean... source)
- Specified by:
containsAllin interfaceBooleanIterable
-
containsAll
public boolean containsAll(BooleanIterable source)
- Specified by:
containsAllin interfaceBooleanIterable
-
toList
public MutableBooleanList toList()
- Specified by:
toListin interfaceBooleanIterable
-
toSet
public MutableBooleanSet toSet()
- Specified by:
toSetin interfaceBooleanIterable
-
toBag
public MutableBooleanBag toBag()
- Specified by:
toBagin interfaceBooleanIterable
-
asLazy
public LazyBooleanIterable asLazy()
- Specified by:
asLazyin interfaceBooleanIterable
-
withKeyValue
public MutableFloatBooleanMap withKeyValue(float key, boolean value)
- Specified by:
withKeyValuein interfaceMutableFloatBooleanMap
-
withoutKey
public MutableFloatBooleanMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatBooleanMap
-
withoutAllKeys
public MutableFloatBooleanMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatBooleanMap
-
asUnmodifiable
public MutableFloatBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatBooleanMap
-
asSynchronized
public MutableFloatBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatBooleanMap
-
toImmutable
public ImmutableFloatBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceFloatBooleanMap
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmptyin interfacePrimitiveIterable
-
keySet
public MutableFloatSet keySet()
- Specified by:
keySetin interfaceFloatBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceFloatBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatBooleanMap- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceBooleanIterable
-
chunk
public RichIterable<BooleanIterable> chunk(int size)
- Specified by:
chunkin interfaceBooleanIterable
-
-