Class SynchronizedDoubleBooleanMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedDoubleBooleanMap
-
- All Implemented Interfaces:
Serializable
,BooleanIterable
,BooleanValuesMap
,DoubleBooleanMap
,MutableBooleanValuesMap
,MutableDoubleBooleanMap
,PrimitiveIterable
public class SynchronizedDoubleBooleanMap extends Object implements MutableDoubleBooleanMap, Serializable
A synchronized view of aMutableDoubleBooleanMap
. 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:
MutableDoubleBooleanMap.asSynchronized()
,MutableMap.asSynchronized()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedDoubleBooleanMap(MutableDoubleBooleanMap map)
SynchronizedDoubleBooleanMap(MutableDoubleBooleanMap 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.DoubleBooleanMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleBooleanMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedDoubleBooleanMap
public SynchronizedDoubleBooleanMap(MutableDoubleBooleanMap map)
-
SynchronizedDoubleBooleanMap
public SynchronizedDoubleBooleanMap(MutableDoubleBooleanMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableBooleanValuesMap
-
put
public void put(double key, boolean value)
- Specified by:
put
in interfaceMutableDoubleBooleanMap
-
putPair
public void putPair(DoubleBooleanPair keyValuePair)
- Specified by:
putPair
in interfaceMutableDoubleBooleanMap
-
putAll
public void putAll(DoubleBooleanMap map)
- Specified by:
putAll
in interfaceMutableDoubleBooleanMap
-
updateValues
public void updateValues(DoubleBooleanToBooleanFunction function)
- Specified by:
updateValues
in interfaceMutableDoubleBooleanMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKey
in interfaceMutableDoubleBooleanMap
-
remove
public void remove(double key)
- Specified by:
remove
in interfaceMutableDoubleBooleanMap
-
removeKeyIfAbsent
public boolean removeKeyIfAbsent(double key, boolean value)
- Specified by:
removeKeyIfAbsent
in interfaceMutableDoubleBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(double key, boolean value)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleBooleanMap
-
getAndPut
public boolean getAndPut(double key, boolean putValue, boolean defaultValue)
- Specified by:
getAndPut
in interfaceMutableDoubleBooleanMap
-
getIfAbsentPut
public boolean getIfAbsentPut(double key, BooleanFunction0 function)
- Specified by:
getIfAbsentPut
in interfaceMutableDoubleBooleanMap
-
getIfAbsentPutWithKey
public boolean getIfAbsentPutWithKey(double key, DoubleToBooleanFunction function)
- Specified by:
getIfAbsentPutWithKey
in interfaceMutableDoubleBooleanMap
-
getIfAbsentPutWith
public <P> boolean getIfAbsentPutWith(double key, BooleanFunction<? super P> function, P parameter)
- Specified by:
getIfAbsentPutWith
in interfaceMutableDoubleBooleanMap
-
updateValue
public boolean updateValue(double key, boolean initialValueIfAbsent, BooleanToBooleanFunction function)
- Specified by:
updateValue
in interfaceMutableDoubleBooleanMap
-
get
public boolean get(double key)
- Specified by:
get
in interfaceDoubleBooleanMap
-
getIfAbsent
public boolean getIfAbsent(double key, boolean ifAbsent)
- Specified by:
getIfAbsent
in interfaceDoubleBooleanMap
-
getOrThrow
public boolean getOrThrow(double key)
- Specified by:
getOrThrow
in interfaceDoubleBooleanMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKey
in interfaceDoubleBooleanMap
-
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(DoubleProcedure procedure)
- Specified by:
forEachKey
in interfaceDoubleBooleanMap
-
forEachKeyValue
public void forEachKeyValue(DoubleBooleanProcedure procedure)
- Specified by:
forEachKeyValue
in interfaceDoubleBooleanMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysView
in interfaceDoubleBooleanMap
-
keyValuesView
public RichIterable<DoubleBooleanPair> keyValuesView()
- Specified by:
keyValuesView
in interfaceDoubleBooleanMap
-
select
public MutableDoubleBooleanMap select(DoubleBooleanPredicate predicate)
- Specified by:
select
in interfaceDoubleBooleanMap
- Specified by:
select
in interfaceMutableDoubleBooleanMap
-
reject
public MutableDoubleBooleanMap reject(DoubleBooleanPredicate predicate)
- Specified by:
reject
in interfaceDoubleBooleanMap
- Specified by:
reject
in interfaceMutableDoubleBooleanMap
-
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 MutableDoubleBooleanMap withKeyValue(double key, boolean value)
- Specified by:
withKeyValue
in interfaceMutableDoubleBooleanMap
-
withoutKey
public MutableDoubleBooleanMap withoutKey(double key)
- Specified by:
withoutKey
in interfaceMutableDoubleBooleanMap
-
withoutAllKeys
public MutableDoubleBooleanMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeys
in interfaceMutableDoubleBooleanMap
-
asUnmodifiable
public MutableDoubleBooleanMap asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableDoubleBooleanMap
-
asSynchronized
public MutableDoubleBooleanMap asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableDoubleBooleanMap
-
toImmutable
public ImmutableDoubleBooleanMap toImmutable()
- Specified by:
toImmutable
in interfaceDoubleBooleanMap
-
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 MutableDoubleSet keySet()
- Specified by:
keySet
in interfaceDoubleBooleanMap
-
values
public MutableBooleanCollection values()
- Specified by:
values
in interfaceBooleanValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equals
in interfaceDoubleBooleanMap
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceDoubleBooleanMap
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfaceDoubleBooleanMap
- Specified by:
toString
in interfacePrimitiveIterable
- 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
-
-