Class SynchronizedIntBooleanMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedIntBooleanMap
-
- All Implemented Interfaces:
Serializable
,BooleanIterable
,BooleanValuesMap
,IntBooleanMap
,MutableBooleanValuesMap
,MutableIntBooleanMap
,PrimitiveIterable
public class SynchronizedIntBooleanMap extends Object implements MutableIntBooleanMap, Serializable
A synchronized view of aMutableIntBooleanMap
. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableBooleanIterator
as perCollections.synchronizedCollection(Collection)
.This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableIntBooleanMap.asSynchronized()
,MutableMap.asSynchronized()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedIntBooleanMap(MutableIntBooleanMap map)
SynchronizedIntBooleanMap(MutableIntBooleanMap 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.IntBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableIntBooleanMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedIntBooleanMap
public SynchronizedIntBooleanMap(MutableIntBooleanMap map)
-
SynchronizedIntBooleanMap
public SynchronizedIntBooleanMap(MutableIntBooleanMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableBooleanValuesMap
-
put
public void put(int key, boolean value)
- Specified by:
put
in interfaceMutableIntBooleanMap
-
putPair
public void putPair(IntBooleanPair keyValuePair)
- Specified by:
putPair
in interfaceMutableIntBooleanMap
-
putAll
public void putAll(IntBooleanMap map)
- Specified by:
putAll
in interfaceMutableIntBooleanMap
-
updateValues
public void updateValues(IntBooleanToBooleanFunction function)
- Specified by:
updateValues
in interfaceMutableIntBooleanMap
-
removeKey
public void removeKey(int key)
- Specified by:
removeKey
in interfaceMutableIntBooleanMap
-
remove
public void remove(int key)
- Specified by:
remove
in interfaceMutableIntBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(int key, boolean value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableIntBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(int key, boolean value)
- Specified by:
getIfAbsentPut
in interfaceMutableIntBooleanMap
-
getAndPut
public boolean getAndPut(int key, boolean putValue, boolean defaultValue)
- Specified by:
getAndPut
in interfaceMutableIntBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(int key, BooleanFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableIntBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(int key, IntToBooleanFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableIntBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(int key, BooleanFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableIntBooleanMap
-
updateValue
public boolean updateValue(int key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
- Specified by:
updateValue
in interfaceMutableIntBooleanMap
-
get
public boolean get(int key)
- Specified by:
get
in interfaceIntBooleanMap
-
getIfAbsent
public boolean getIfAbsent(int key, boolean ifAbsent)
- Specified by:
getIfAbsent
in interfaceIntBooleanMap
-
getOrThrow
public boolean getOrThrow(int key)
- Specified by:
getOrThrow
in interfaceIntBooleanMap
-
containsKey
public boolean containsKey(int key)
- Specified by:
containsKey
in interfaceIntBooleanMap
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValue
in interfaceBooleanValuesMap
-
forEachValue
public void forEachValue(BooleanProcedure procedure)
- Specified by:
forEachValue
in interfaceBooleanValuesMap
-
forEachKey
public void forEachKey(IntProcedure procedure)
- Specified by:
forEachKey
in interfaceIntBooleanMap
-
forEachKeyValue
public void forEachKeyValue(IntBooleanProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceIntBooleanMap
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysView
in interfaceIntBooleanMap
-
keyValuesView
public RichIterable<IntBooleanPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceIntBooleanMap
-
select
public MutableIntBooleanMap select(IntBooleanPredicate predicate)
- Specified by:
select
in interfaceIntBooleanMap
- Specified by:
select
in interfaceMutableIntBooleanMap
-
reject
public MutableIntBooleanMap reject(IntBooleanPredicate predicate)
- Specified by:
reject
in interfaceIntBooleanMap
- Specified by:
reject
in interfaceMutableIntBooleanMap
-
booleanIterator
public MutableBooleanIterator booleanIterator()
This must be manually synchronized by the developer.- Specified by:
booleanIterator
in interfaceBooleanIterable
- Specified by:
booleanIterator
in interfaceMutableBooleanValuesMap
-
each
public void each(BooleanProcedure procedure)
- Specified by:
each
in interfaceBooleanIterable
- Since:
- 7.0.
-
count
public int count(BooleanPredicate predicate)
- Specified by:
count
in interfaceBooleanIterable
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
- Specified by:
anySatisfy
in interfaceBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
- Specified by:
allSatisfy
in interfaceBooleanIterable
-
noneSatisfy
public boolean noneSatisfy(BooleanPredicate predicate)
- Specified by:
noneSatisfy
in interfaceBooleanIterable
-
select
public MutableBooleanBag select(BooleanPredicate predicate)
- Specified by:
select
in interfaceBooleanIterable
- Specified by:
select
in interfaceBooleanValuesMap
- Specified by:
select
in interfaceMutableBooleanValuesMap
-
reject
public MutableBooleanBag reject(BooleanPredicate predicate)
- Specified by:
reject
in interfaceBooleanIterable
- Specified by:
reject
in interfaceBooleanValuesMap
- Specified by:
reject
in interfaceMutableBooleanValuesMap
-
collect
public <V> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceBooleanIterable
- Specified by:
collect
in interfaceBooleanValuesMap
- Specified by:
collect
in interfaceMutableBooleanValuesMap
-
detectIfNone
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
- Specified by:
detectIfNone
in interfaceBooleanIterable
-
toArray
public boolean[] toArray()
- Specified by:
toArray
in interfaceBooleanIterable
-
toArray
public boolean[] toArray(boolean[] target)
- Specified by:
toArray
in interfaceBooleanIterable
-
contains
public boolean contains(boolean value)
- Specified by:
contains
in interfaceBooleanIterable
-
containsAll
public boolean containsAll(boolean... source)
- Specified by:
containsAll
in interfaceBooleanIterable
-
containsAll
public boolean containsAll(BooleanIterable source)
- Specified by:
containsAll
in interfaceBooleanIterable
-
toList
public MutableBooleanList toList()
- Specified by:
toList
in interfaceBooleanIterable
-
toSet
public MutableBooleanSet toSet()
- Specified by:
toSet
in interfaceBooleanIterable
-
toBag
public MutableBooleanBag toBag()
- Specified by:
toBag
in interfaceBooleanIterable
-
asLazy
public LazyBooleanIterable asLazy()
- Specified by:
asLazy
in interfaceBooleanIterable
-
withKeyValue
public MutableIntBooleanMap withKeyValue(int key, boolean value)
- Specified by:
withKeyValue
in interfaceMutableIntBooleanMap
-
withoutKey
public MutableIntBooleanMap withoutKey(int key)
- Specified by:
withoutKey
in interfaceMutableIntBooleanMap
-
withoutAllKeys
public MutableIntBooleanMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableIntBooleanMap
-
asUnmodifiable
public MutableIntBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableIntBooleanMap
-
asSynchronized
public MutableIntBooleanMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableIntBooleanMap
-
toImmutable
public ImmutableIntBooleanMap toImmutable()
- Specified by:
toImmutable
in interfaceIntBooleanMap
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
keySet
public MutableIntSet keySet()
- Specified by:
keySet
in interfaceIntBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
values
in interfaceBooleanValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceIntBooleanMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceIntBooleanMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceIntBooleanMap
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceBooleanIterable
-
chunk
public RichIterable<BooleanIterable> chunk(int size)
- Specified by:
chunk
in interfaceBooleanIterable
-
-