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 theMutableBooleanIteratoras 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:
clearin interfaceMutableBooleanValuesMap
-
put
public void put(short key, boolean value)- Specified by:
putin interfaceMutableShortBooleanMap
-
putPair
public void putPair(ShortBooleanPair keyValuePair)
- Specified by:
putPairin interfaceMutableShortBooleanMap
-
putAll
public void putAll(ShortBooleanMap map)
- Specified by:
putAllin interfaceMutableShortBooleanMap
-
updateValues
public void updateValues(ShortBooleanToBooleanFunction function)
- Specified by:
updateValuesin interfaceMutableShortBooleanMap
-
removeKey
public void removeKey(short key)
- Specified by:
removeKeyin interfaceMutableShortBooleanMap
-
remove
public void remove(short key)
- Specified by:
removein interfaceMutableShortBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(short key, boolean value)- Specified by:
removeKeyIfAbsentin interfaceMutableShortBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(short key, boolean value)- Specified by:
getIfAbsentPutin interfaceMutableShortBooleanMap
-
getAndPut
public boolean getAndPut(short key, boolean putValue, boolean defaultValue)- Specified by:
getAndPutin interfaceMutableShortBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(short key, BooleanFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableShortBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(short key, ShortToBooleanFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(short key, BooleanFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableShortBooleanMap
-
updateValue
public boolean updateValue(short key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)- Specified by:
updateValuein interfaceMutableShortBooleanMap
-
get
public boolean get(short key)
- Specified by:
getin interfaceShortBooleanMap
-
getIfAbsent
public boolean getIfAbsent(short key, boolean ifAbsent)- Specified by:
getIfAbsentin interfaceShortBooleanMap
-
getOrThrow
public boolean getOrThrow(short key)
- Specified by:
getOrThrowin interfaceShortBooleanMap
-
containsKey
public boolean containsKey(short key)
- Specified by:
containsKeyin interfaceShortBooleanMap
-
containsValue
public boolean containsValue(boolean value)
- Specified by:
containsValuein interfaceBooleanValuesMap
-
forEachValue
public void forEachValue(BooleanProcedure procedure)
- Specified by:
forEachValuein interfaceBooleanValuesMap
-
forEachKey
public void forEachKey(ShortProcedure procedure)
- Specified by:
forEachKeyin interfaceShortBooleanMap
-
forEachKeyValue
public void forEachKeyValue(ShortBooleanProcedure procedure)
- Specified by:
forEachKeyValuein interfaceShortBooleanMap
-
keysView
public LazyShortIterable keysView()
- Specified by:
keysViewin interfaceShortBooleanMap
-
keyValuesView
public RichIterable<ShortBooleanPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceShortBooleanMap
-
select
public MutableShortBooleanMap select(ShortBooleanPredicate predicate)
- Specified by:
selectin interfaceMutableShortBooleanMap- Specified by:
selectin interfaceShortBooleanMap
-
reject
public MutableShortBooleanMap reject(ShortBooleanPredicate predicate)
- Specified by:
rejectin interfaceMutableShortBooleanMap- Specified by:
rejectin interfaceShortBooleanMap
-
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 MutableShortBooleanMap withKeyValue(short key, boolean value)
- Specified by:
withKeyValuein interfaceMutableShortBooleanMap
-
withoutKey
public MutableShortBooleanMap withoutKey(short key)
- Specified by:
withoutKeyin interfaceMutableShortBooleanMap
-
withoutAllKeys
public MutableShortBooleanMap withoutAllKeys(ShortIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableShortBooleanMap
-
asUnmodifiable
public MutableShortBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableShortBooleanMap
-
asSynchronized
public MutableShortBooleanMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableShortBooleanMap
-
toImmutable
public ImmutableShortBooleanMap toImmutable()
- Specified by:
toImmutablein interfaceShortBooleanMap
-
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 MutableShortSet keySet()
- Specified by:
keySetin interfaceShortBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
valuesin interfaceBooleanValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceShortBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceShortBooleanMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortBooleanMap- 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
-
-