Class SynchronizedCharBooleanMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedCharBooleanMap
-
- All Implemented Interfaces:
Serializable,BooleanIterable,BooleanValuesMap,CharBooleanMap,MutableBooleanValuesMap,MutableCharBooleanMap,PrimitiveIterable
public class SynchronizedCharBooleanMap extends Object implements MutableCharBooleanMap, Serializable
A synchronized view of aMutableCharBooleanMap. 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:
MutableCharBooleanMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedCharBooleanMap(MutableCharBooleanMap map)SynchronizedCharBooleanMap(MutableCharBooleanMap 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.CharBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableCharBooleanMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedCharBooleanMap
public SynchronizedCharBooleanMap(MutableCharBooleanMap map)
-
SynchronizedCharBooleanMap
public SynchronizedCharBooleanMap(MutableCharBooleanMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableBooleanValuesMap
-
put
public void put(char key, boolean value)- Specified by:
putin interfaceMutableCharBooleanMap
-
putPair
public void putPair(CharBooleanPair keyValuePair)
- Specified by:
putPairin interfaceMutableCharBooleanMap
-
putAll
public void putAll(CharBooleanMap map)
- Specified by:
putAllin interfaceMutableCharBooleanMap
-
updateValues
public void updateValues(CharBooleanToBooleanFunction function)
- Specified by:
updateValuesin interfaceMutableCharBooleanMap
-
removeKey
public void removeKey(char key)
- Specified by:
removeKeyin interfaceMutableCharBooleanMap
-
remove
public void remove(char key)
- Specified by:
removein interfaceMutableCharBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(char key, boolean value)- Specified by:
removeKeyIfAbsentin interfaceMutableCharBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(char key, boolean value)- Specified by:
getIfAbsentPutin interfaceMutableCharBooleanMap
-
getAndPut
public boolean getAndPut(char key, boolean putValue, boolean defaultValue)- Specified by:
getAndPutin interfaceMutableCharBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(char key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableCharBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(char key, CharToBooleanFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableCharBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(char key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableCharBooleanMap
-
updateValue
public boolean updateValue(char key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)- Specified by:
updateValuein interfaceMutableCharBooleanMap
-
get
public boolean get(char key)
- Specified by:
getin interfaceCharBooleanMap
-
getIfAbsent
public boolean getIfAbsent(char key, boolean ifAbsent)- Specified by:
getIfAbsentin interfaceCharBooleanMap
-
getOrThrow
public boolean getOrThrow(char key)
- Specified by:
getOrThrowin interfaceCharBooleanMap
-
containsKey
public boolean containsKey(char key)
- Specified by:
containsKeyin interfaceCharBooleanMap
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValuein interfaceBooleanValuesMap
-
forEachValue
public void forEachValue(BooleanProcedure procedure)
- Specified by:
forEachValuein interfaceBooleanValuesMap
-
forEachKey
public void forEachKey(CharProcedure procedure)
- Specified by:
forEachKeyin interfaceCharBooleanMap
-
forEachKeyValue
public void forEachKeyValue(CharBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceCharBooleanMap
-
keysView
public LazyCharIterable keysView()
- Specified by:
keysViewin interfaceCharBooleanMap
-
keyValuesView
public RichIterable<CharBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceCharBooleanMap
-
select
public MutableCharBooleanMap select(CharBooleanPredicate predicate)
- Specified by:
selectin interfaceCharBooleanMap- Specified by:
selectin interfaceMutableCharBooleanMap
-
reject
public MutableCharBooleanMap reject(CharBooleanPredicate predicate)
- Specified by:
rejectin interfaceCharBooleanMap- Specified by:
rejectin interfaceMutableCharBooleanMap
-
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 MutableCharBooleanMap withKeyValue(char key, boolean value)
- Specified by:
withKeyValuein interfaceMutableCharBooleanMap
-
withoutKey
public MutableCharBooleanMap withoutKey(char key)
- Specified by:
withoutKeyin interfaceMutableCharBooleanMap
-
withoutAllKeys
public MutableCharBooleanMap withoutAllKeys(CharIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableCharBooleanMap
-
asUnmodifiable
public MutableCharBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharBooleanMap
-
asSynchronized
public MutableCharBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharBooleanMap
-
toImmutable
public ImmutableCharBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceCharBooleanMap
-
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 MutableCharSet keySet()
- Specified by:
keySetin interfaceCharBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceCharBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCharBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceCharBooleanMap- 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
-
-