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