Class SynchronizedShortBooleanMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedShortBooleanMap
-
- All Implemented Interfaces:
Serializable
,BooleanIterable
,BooleanValuesMap
,MutableBooleanValuesMap
,MutableShortBooleanMap
,ShortBooleanMap
,PrimitiveIterable
public class SynchronizedShortBooleanMap extends Object implements MutableShortBooleanMap, Serializable
A synchronized view of aMutableShortBooleanMap
. 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:
MutableShortBooleanMap.asSynchronized()
,MutableMap.asSynchronized()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedShortBooleanMap(MutableShortBooleanMap map)
SynchronizedShortBooleanMap(MutableShortBooleanMap 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.MutableShortBooleanMap
withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.ShortBooleanMap
injectIntoKeyValue
-
-
-
-
Constructor Detail
-
SynchronizedShortBooleanMap
public SynchronizedShortBooleanMap(MutableShortBooleanMap map)
-
SynchronizedShortBooleanMap
public SynchronizedShortBooleanMap(MutableShortBooleanMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableBooleanValuesMap
-
put
public void put(short key, boolean value)
- Specified by:
put
in interfaceMutableShortBooleanMap
-
putPair
public void putPair(ShortBooleanPair keyValuePair)
- Specified by:
putPair
in interfaceMutableShortBooleanMap
-
putAll
public void putAll(ShortBooleanMap map)
- Specified by:
putAll
in interfaceMutableShortBooleanMap
-
updateValues
public void updateValues(ShortBooleanToBooleanFunction function)
- Specified by:
updateValues
in interfaceMutableShortBooleanMap
-
removeKey
public void removeKey(short key)
- Specified by:
removeKey
in interfaceMutableShortBooleanMap
-
remove
public void remove(short key)
- Specified by:
remove
in interfaceMutableShortBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(short key, boolean value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableShortBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(short key, boolean value)
- Specified by:
getIfAbsentPut
in interfaceMutableShortBooleanMap
-
getAndPut
public boolean getAndPut(short key, boolean putValue, boolean defaultValue)
- Specified by:
getAndPut
in interfaceMutableShortBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(short key, BooleanFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableShortBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(short key, ShortToBooleanFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableShortBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(short key, BooleanFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableShortBooleanMap
-
updateValue
public boolean updateValue(short key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
- Specified by:
updateValue
in interfaceMutableShortBooleanMap
-
get
public boolean get(short key)
- Specified by:
get
in interfaceShortBooleanMap
-
getIfAbsent
public boolean getIfAbsent(short key, boolean ifAbsent)
- Specified by:
getIfAbsent
in interfaceShortBooleanMap
-
getOrThrow
public boolean getOrThrow(short key)
- Specified by:
getOrThrow
in interfaceShortBooleanMap
-
containsKey
public boolean containsKey(short key)
- Specified by:
containsKey
in interfaceShortBooleanMap
-
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(ShortProcedure procedure)
- Specified by:
forEachKey
in interfaceShortBooleanMap
-
forEachKeyValue
public void forEachKeyValue(ShortBooleanProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceShortBooleanMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysView
in interfaceShortBooleanMap
-
keyValuesView
public RichIterable<ShortBooleanPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceShortBooleanMap
-
select
public MutableShortBooleanMap select(ShortBooleanPredicate predicate)
- Specified by:
select
in interfaceMutableShortBooleanMap
- Specified by:
select
in interfaceShortBooleanMap
-
reject
public MutableShortBooleanMap reject(ShortBooleanPredicate predicate)
- Specified by:
reject
in interfaceMutableShortBooleanMap
- Specified by:
reject
in interfaceShortBooleanMap
-
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 MutableShortBooleanMap withKeyValue(short key, boolean value)
- Specified by:
withKeyValue
in interfaceMutableShortBooleanMap
-
withoutKey
public MutableShortBooleanMap withoutKey(short key)
- Specified by:
withoutKey
in interfaceMutableShortBooleanMap
-
withoutAllKeys
public MutableShortBooleanMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableShortBooleanMap
-
asUnmodifiable
public MutableShortBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableShortBooleanMap
-
asSynchronized
public MutableShortBooleanMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableShortBooleanMap
-
toImmutable
public ImmutableShortBooleanMap toImmutable()
- Specified by:
toImmutable
in interfaceShortBooleanMap
-
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 MutableShortSet keySet()
- Specified by:
keySet
in interfaceShortBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
values
in interfaceBooleanValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceShortBooleanMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceShortBooleanMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveIterable
- Specified by:
toString
in interfaceShortBooleanMap
- 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
-
-