Class SynchronizedObjectBooleanMap<K>
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedObjectBooleanMap<K>
-
- All Implemented Interfaces:
Serializable,BooleanIterable,MutableObjectBooleanMap<K>,ObjectBooleanMap<K>,PrimitiveIterable
public class SynchronizedObjectBooleanMap<K> extends Object implements MutableObjectBooleanMap<K>, Serializable
A synchronized view of aMutableObjectBooleanMap. It is imperative that the user manually synchronize on the collection when iterating over it using the BooleanIterator as perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedObjectPrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableObjectBooleanMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedObjectBooleanMap(MutableObjectBooleanMap<K> map)SynchronizedObjectBooleanMap(MutableObjectBooleanMap<K> 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.MutableObjectBooleanMap
tap, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ObjectBooleanMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
SynchronizedObjectBooleanMap
public SynchronizedObjectBooleanMap(MutableObjectBooleanMap<K> map)
-
SynchronizedObjectBooleanMap
public SynchronizedObjectBooleanMap(MutableObjectBooleanMap<K> map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableObjectBooleanMap<K>
-
put
public void put(K key, boolean value)
- Specified by:
putin interfaceMutableObjectBooleanMap<K>
-
putPair
public void putPair(ObjectBooleanPair<K> keyValuePair)
- Specified by:
putPairin interfaceMutableObjectBooleanMap<K>
-
putAll
public void putAll(ObjectBooleanMap<? extends K> map)
- Specified by:
putAllin interfaceMutableObjectBooleanMap<K>
-
updateValues
public void updateValues(ObjectBooleanToBooleanFunction<? super K> function)
- Specified by:
updateValuesin interfaceMutableObjectBooleanMap<K>
-
removeKey
public void removeKey(K key)
- Specified by:
removeKeyin interfaceMutableObjectBooleanMap<K>
-
remove
public void remove(Object key)
- Specified by:
removein interfaceMutableObjectBooleanMap<K>
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(K key, boolean value)
- Specified by:
removeKeyIfAbsentin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPut
public boolean getIfAbsentPut(K key, boolean value)
- Specified by:
getIfAbsentPutin interfaceMutableObjectBooleanMap<K>
-
getAndPut
public boolean getAndPut(K key, boolean putValue, boolean defaultValue)
- Specified by:
getAndPutin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPut
public boolean getIfAbsentPut(K key, BooleanFunction0 function)
- Specified by:
getIfAbsentPutin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(K key, BooleanFunction<? super K> function)
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableObjectBooleanMap<K>
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(K key, BooleanFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWithin interfaceMutableObjectBooleanMap<K>
-
updateValue
public boolean updateValue(K key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
- Specified by:
updateValuein interfaceMutableObjectBooleanMap<K>
-
get
public boolean get(Object key)
- Specified by:
getin interfaceObjectBooleanMap<K>
-
getOrThrow
public boolean getOrThrow(Object key)
- Specified by:
getOrThrowin interfaceObjectBooleanMap<K>
-
getIfAbsent
public boolean getIfAbsent(Object key, boolean ifAbsent)
- Specified by:
getIfAbsentin interfaceObjectBooleanMap<K>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceObjectBooleanMap<K>
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValuein interfaceObjectBooleanMap<K>
-
forEachValue
public void forEachValue(BooleanProcedure procedure)
- Specified by:
forEachValuein interfaceObjectBooleanMap<K>
-
forEachKey
public void forEachKey(Procedure<? super K> procedure)
- Specified by:
forEachKeyin interfaceObjectBooleanMap<K>
-
forEachKeyValue
public void forEachKeyValue(ObjectBooleanProcedure<? super K> procedure)
- Specified by:
forEachKeyValuein interfaceObjectBooleanMap<K>
-
select
public MutableObjectBooleanMap<K> select(ObjectBooleanPredicate<? super K> predicate)
- Specified by:
selectin interfaceMutableObjectBooleanMap<K>- Specified by:
selectin interfaceObjectBooleanMap<K>
-
reject
public MutableObjectBooleanMap<K> reject(ObjectBooleanPredicate<? super K> predicate)
- Specified by:
rejectin interfaceMutableObjectBooleanMap<K>- Specified by:
rejectin interfaceObjectBooleanMap<K>
-
booleanIterator
public MutableBooleanIterator booleanIterator()
Must be called in a synchronized block.- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableObjectBooleanMap<K>
-
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 MutableBooleanCollection select(BooleanPredicate predicate)
- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceMutableObjectBooleanMap<K>
-
reject
public MutableBooleanCollection reject(BooleanPredicate predicate)
- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceMutableObjectBooleanMap<K>
-
detectIfNone
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
- Specified by:
detectIfNonein interfaceBooleanIterable
-
collect
public <V1> MutableCollection<V1> collect(BooleanToObjectFunction<? extends V1> function)
- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceMutableObjectBooleanMap<K>
-
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 MutableObjectBooleanMap<K> withKeyValue(K key, boolean value)
- Specified by:
withKeyValuein interfaceMutableObjectBooleanMap<K>
-
withoutKey
public MutableObjectBooleanMap<K> withoutKey(K key)
- Specified by:
withoutKeyin interfaceMutableObjectBooleanMap<K>
-
withoutAllKeys
public MutableObjectBooleanMap<K> withoutAllKeys(Iterable<? extends K> keys)
- Specified by:
withoutAllKeysin interfaceMutableObjectBooleanMap<K>
-
asUnmodifiable
public MutableObjectBooleanMap<K> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableObjectBooleanMap<K>
-
asSynchronized
public MutableObjectBooleanMap<K> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableObjectBooleanMap<K>
-
toImmutable
public ImmutableObjectBooleanMap<K> toImmutable()
- Specified by:
toImmutablein interfaceObjectBooleanMap<K>
-
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 Set<K> keySet()
- Specified by:
keySetin interfaceObjectBooleanMap<K>
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceObjectBooleanMap<K>
-
keysView
public LazyIterable<K> keysView()
- Specified by:
keysViewin interfaceObjectBooleanMap<K>
-
keyValuesView
public RichIterable<ObjectBooleanPair<K>> keyValuesView()
- Specified by:
keyValuesViewin interfaceObjectBooleanMap<K>
-
toString
public String toString()
- Specified by:
toStringin interfaceObjectBooleanMap<K>- 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
-
-