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 theMutableBooleanIteratoras 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:
clearin interfaceMutableBooleanValuesMap
-
put
public void put(int key, boolean value)- Specified by:
putin interfaceMutableIntBooleanMap
-
putPair
public void putPair(IntBooleanPair keyValuePair)
- Specified by:
putPairin interfaceMutableIntBooleanMap
-
putAll
public void putAll(IntBooleanMap map)
- Specified by:
putAllin interfaceMutableIntBooleanMap
-
updateValues
public void updateValues(IntBooleanToBooleanFunction function)
- Specified by:
updateValuesin interfaceMutableIntBooleanMap
-
removeKey
public void removeKey(int key)
- Specified by:
removeKeyin interfaceMutableIntBooleanMap
-
remove
public void remove(int key)
- Specified by:
removein interfaceMutableIntBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(int key, boolean value)- Specified by:
removeKeyIfAbsentin interfaceMutableIntBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(int key, boolean value)- Specified by:
getIfAbsentPutin interfaceMutableIntBooleanMap
-
getAndPut
public boolean getAndPut(int key, boolean putValue, boolean defaultValue)- Specified by:
getAndPutin interfaceMutableIntBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(int key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableIntBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(int key, IntToBooleanFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableIntBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(int key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableIntBooleanMap
-
updateValue
public boolean updateValue(int key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)- Specified by:
updateValuein interfaceMutableIntBooleanMap
-
get
public boolean get(int key)
- Specified by:
getin interfaceIntBooleanMap
-
getIfAbsent
public boolean getIfAbsent(int key, boolean ifAbsent)- Specified by:
getIfAbsentin interfaceIntBooleanMap
-
getOrThrow
public boolean getOrThrow(int key)
- Specified by:
getOrThrowin interfaceIntBooleanMap
-
containsKey
public boolean containsKey(int key)
- Specified by:
containsKeyin interfaceIntBooleanMap
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValuein interfaceBooleanValuesMap
-
forEachValue
public void forEachValue(BooleanProcedure procedure)
- Specified by:
forEachValuein interfaceBooleanValuesMap
-
forEachKey
public void forEachKey(IntProcedure procedure)
- Specified by:
forEachKeyin interfaceIntBooleanMap
-
forEachKeyValue
public void forEachKeyValue(IntBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceIntBooleanMap
-
keysView
public LazyIntIterable keysView()
- Specified by:
keysViewin interfaceIntBooleanMap
-
keyValuesView
public RichIterable<IntBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceIntBooleanMap
-
select
public MutableIntBooleanMap select(IntBooleanPredicate predicate)
- Specified by:
selectin interfaceIntBooleanMap- Specified by:
selectin interfaceMutableIntBooleanMap
-
reject
public MutableIntBooleanMap reject(IntBooleanPredicate predicate)
- Specified by:
rejectin interfaceIntBooleanMap- Specified by:
rejectin interfaceMutableIntBooleanMap
-
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 MutableIntBooleanMap withKeyValue(int key, boolean value)
- Specified by:
withKeyValuein interfaceMutableIntBooleanMap
-
withoutKey
public MutableIntBooleanMap withoutKey(int key)
- Specified by:
withoutKeyin interfaceMutableIntBooleanMap
-
withoutAllKeys
public MutableIntBooleanMap withoutAllKeys(IntIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableIntBooleanMap
-
asUnmodifiable
public MutableIntBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableIntBooleanMap
-
asSynchronized
public MutableIntBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableIntBooleanMap
-
toImmutable
public ImmutableIntBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceIntBooleanMap
-
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 MutableIntSet keySet()
- Specified by:
keySetin interfaceIntBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceIntBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceIntBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceIntBooleanMap- 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
-
-