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 a
MutableShortBooleanMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableBooleanIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(BooleanPredicate predicate) booleanallSatisfyKeyValue(ShortBooleanPredicate predicate) booleananySatisfy(BooleanPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()This must be manually synchronized by the developer.chunk(int size) voidclear()<V> MutableBag<V>collect(BooleanToObjectFunction<? extends V> function) booleancontains(boolean value) booleancontainsAll(boolean... source) booleancontainsAll(BooleanIterable source) booleancontainsKey(short key) booleancontainsValue(boolean value) intcount(BooleanPredicate predicate) booleandetectIfNone(BooleanPredicate predicate, boolean ifNone) voideach(BooleanProcedure procedure) booleanvoidforEachKey(ShortProcedure procedure) voidforEachKeyValue(ShortBooleanProcedure procedure) voidforEachValue(BooleanProcedure procedure) booleanget(short key) booleangetAndPut(short key, boolean putValue, boolean defaultValue) booleangetIfAbsent(short key, boolean ifAbsent) booleangetIfAbsentPut(short key, boolean value) booleangetIfAbsentPut(short key, BooleanFunction0 function) <P> booleangetIfAbsentPutWith(short key, BooleanFunction<? super P> function, P parameter) booleangetIfAbsentPutWithKey(short key, ShortToBooleanFunction function) booleangetOrThrow(short key) inthashCode()<T> TinjectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function) booleanisEmpty()keySet()keysView()makeString(String separator) makeString(String start, String separator, String end) booleannoneSatisfy(BooleanPredicate predicate) booleannotEmpty()voidput(short key, boolean value) voidputAll(ShortBooleanMap map) voidputPair(ShortBooleanPair keyValuePair) reject(BooleanPredicate predicate) reject(ShortBooleanPredicate predicate) voidremove(short key) voidremoveKey(short key) booleanremoveKeyIfAbsent(short key, boolean value) select(BooleanPredicate predicate) select(ShortBooleanPredicate predicate) intsize()boolean[]toArray()boolean[]toArray(boolean[] target) toBag()toList()toSet()toString()booleanupdateValue(short key, boolean initialValueIfAbsent, BooleanToBooleanFunction function) voidupdateValues(ShortBooleanToBooleanFunction function) values()withKeyValue(short key, boolean value) withoutAllKeys(ShortIterable keys) withoutKey(short key) 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, selectMethods inherited from interface org.eclipse.collections.api.map.primitive.BooleanValuesMap
tapMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMap
withAllKeyValuesMethods inherited from interface org.eclipse.collections.api.map.primitive.ShortBooleanMap
injectIntoKeyValue
-
Constructor Details
-
SynchronizedShortBooleanMap
-
SynchronizedShortBooleanMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceMutableBooleanValuesMap
-
put
public void put(short key, boolean value) - Specified by:
putin interfaceMutableShortBooleanMap
-
putPair
- Specified by:
putPairin interfaceMutableShortBooleanMap
-
putAll
- Specified by:
putAllin interfaceMutableShortBooleanMap
-
updateValues
- 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
- Specified by:
getIfAbsentPutin interfaceMutableShortBooleanMap
-
getIfAbsentPutWithKey
- Specified by:
getIfAbsentPutWithKeyin interfaceMutableShortBooleanMap
-
getIfAbsentPutWith
- 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
- Specified by:
forEachValuein interfaceBooleanValuesMap
-
forEachKey
- Specified by:
forEachKeyin interfaceShortBooleanMap
-
forEachKeyValue
- Specified by:
forEachKeyValuein interfaceShortBooleanMap
-
allSatisfyKeyValue
- Specified by:
allSatisfyKeyValuein interfaceShortBooleanMap- Since:
- 12.0
-
keysView
- Specified by:
keysViewin interfaceShortBooleanMap
-
keyValuesView
- Specified by:
keyValuesViewin interfaceShortBooleanMap
-
select
- Specified by:
selectin interfaceMutableShortBooleanMap- Specified by:
selectin interfaceShortBooleanMap
-
reject
- Specified by:
rejectin interfaceMutableShortBooleanMap- Specified by:
rejectin interfaceShortBooleanMap
-
booleanIterator
This must be manually synchronized by the developer.- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanValuesMap
-
each
- Specified by:
eachin interfaceBooleanIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceBooleanIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceBooleanIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceBooleanIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceBooleanIterable
-
select
- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceBooleanValuesMap- Specified by:
selectin interfaceMutableBooleanValuesMap
-
reject
- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceBooleanValuesMap- Specified by:
rejectin interfaceMutableBooleanValuesMap
-
collect
- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceBooleanValuesMap- Specified by:
collectin interfaceMutableBooleanValuesMap
-
detectIfNone
- 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
- Specified by:
containsAllin interfaceBooleanIterable
-
toList
- Specified by:
toListin interfaceBooleanIterable
-
toSet
- Specified by:
toSetin interfaceBooleanIterable
-
toBag
- Specified by:
toBagin interfaceBooleanIterable
-
asLazy
- Specified by:
asLazyin interfaceBooleanIterable
-
withKeyValue
- Specified by:
withKeyValuein interfaceMutableShortBooleanMap
-
withoutKey
- Specified by:
withoutKeyin interfaceMutableShortBooleanMap
-
withoutAllKeys
- Specified by:
withoutAllKeysin interfaceMutableShortBooleanMap
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableShortBooleanMap
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableShortBooleanMap
-
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
- Specified by:
keySetin interfaceShortBooleanMap
-
values
- Specified by:
valuesin interfaceBooleanValuesMap
-
equals
- Specified by:
equalsin interfaceShortBooleanMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShortBooleanMap- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Specified by:
toStringin interfaceShortBooleanMap- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceBooleanIterable
-
chunk
- Specified by:
chunkin interfaceBooleanIterable
-