Class SynchronizedFloatDoubleMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedFloatDoubleMap
-
- All Implemented Interfaces:
Serializable,DoubleIterable,DoubleValuesMap,FloatDoubleMap,MutableDoubleValuesMap,MutableFloatDoubleMap,PrimitiveIterable
public class SynchronizedFloatDoubleMap extends Object implements MutableFloatDoubleMap, Serializable
A synchronized view of aMutableFloatDoubleMap. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableDoubleIteratoras perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableFloatDoubleMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedFloatDoubleMap(MutableFloatDoubleMap map)SynchronizedFloatDoubleMap(MutableFloatDoubleMap map, Object newLock)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.DoubleIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatDoubleMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatDoubleMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedFloatDoubleMap
public SynchronizedFloatDoubleMap(MutableFloatDoubleMap map)
-
SynchronizedFloatDoubleMap
public SynchronizedFloatDoubleMap(MutableFloatDoubleMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableDoubleValuesMap
-
put
public void put(float key, double value)- Specified by:
putin interfaceMutableFloatDoubleMap
-
putPair
public void putPair(FloatDoublePair keyValuePair)
- Specified by:
putPairin interfaceMutableFloatDoubleMap
-
putAll
public void putAll(FloatDoubleMap map)
- Specified by:
putAllin interfaceMutableFloatDoubleMap
-
updateValues
public void updateValues(FloatDoubleToDoubleFunction function)
- Specified by:
updateValuesin interfaceMutableFloatDoubleMap
-
removeKey
public void removeKey(float key)
- Specified by:
removeKeyin interfaceMutableFloatDoubleMap
-
remove
public void remove(float key)
- Specified by:
removein interfaceMutableFloatDoubleMap
-
removeKeyIfAbsent
public double removeKeyIfAbsent(float key, double value)- Specified by:
removeKeyIfAbsentin interfaceMutableFloatDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(float key, double value)- Specified by:
getIfAbsentPutin interfaceMutableFloatDoubleMap
-
getAndPut
public double getAndPut(float key, double putValue, double defaultValue)- Specified by:
getAndPutin interfaceMutableFloatDoubleMap
-
getIfAbsentPut
public double getIfAbsentPut(float key, DoubleFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableFloatDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(float key, FloatToDoubleFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatDoubleMap
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(float key, DoubleFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatDoubleMap
-
updateValue
public double updateValue(float key, double initialValueIfAbsent, DoubleToDoubleFunction function)- Specified by:
updateValuein interfaceMutableFloatDoubleMap
-
get
public double get(float key)
- Specified by:
getin interfaceFloatDoubleMap
-
getIfAbsent
public double getIfAbsent(float key, double ifAbsent)- Specified by:
getIfAbsentin interfaceFloatDoubleMap
-
getOrThrow
public double getOrThrow(float key)
- Specified by:
getOrThrowin interfaceFloatDoubleMap
-
containsKey
public boolean containsKey(float key)
- Specified by:
containsKeyin interfaceFloatDoubleMap
-
containsValue
public boolean containsValue(double value)
- Specified by:
containsValuein interfaceDoubleValuesMap
-
forEachValue
public void forEachValue(DoubleProcedure procedure)
- Specified by:
forEachValuein interfaceDoubleValuesMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatDoubleMap
-
forEachKeyValue
public void forEachKeyValue(FloatDoubleProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatDoubleMap
-
keysView
public LazyFloatIterable keysView()
- Specified by:
keysViewin interfaceFloatDoubleMap
-
keyValuesView
public RichIterable<FloatDoublePair> keyValuesView()
- Specified by:
keyValuesViewin interfaceFloatDoubleMap
-
flipUniqueValues
public MutableDoubleFloatMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceFloatDoubleMap- Specified by:
flipUniqueValuesin interfaceMutableFloatDoubleMap
-
select
public MutableFloatDoubleMap select(FloatDoublePredicate predicate)
- Specified by:
selectin interfaceFloatDoubleMap- Specified by:
selectin interfaceMutableFloatDoubleMap
-
reject
public MutableFloatDoubleMap reject(FloatDoublePredicate predicate)
- Specified by:
rejectin interfaceFloatDoubleMap- Specified by:
rejectin interfaceMutableFloatDoubleMap
-
doubleIterator
public MutableDoubleIterator doubleIterator()
This must be manually synchronized by the developer.- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleValuesMap
-
each
public void each(DoubleProcedure procedure)
- Specified by:
eachin interfaceDoubleIterable- Since:
- 7.0.
-
count
public int count(DoublePredicate predicate)
- Specified by:
countin interfaceDoubleIterable
-
anySatisfy
public boolean anySatisfy(DoublePredicate predicate)
- Specified by:
anySatisfyin interfaceDoubleIterable
-
allSatisfy
public boolean allSatisfy(DoublePredicate predicate)
- Specified by:
allSatisfyin interfaceDoubleIterable
-
noneSatisfy
public boolean noneSatisfy(DoublePredicate predicate)
- Specified by:
noneSatisfyin interfaceDoubleIterable
-
select
public MutableDoubleBag select(DoublePredicate predicate)
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleValuesMap- Specified by:
selectin interfaceMutableDoubleValuesMap
-
reject
public MutableDoubleBag reject(DoublePredicate predicate)
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleValuesMap- Specified by:
rejectin interfaceMutableDoubleValuesMap
-
collect
public <V> MutableBag<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleValuesMap- Specified by:
collectin interfaceMutableDoubleValuesMap
-
detectIfNone
public double detectIfNone(DoublePredicate predicate, double ifNone)
- Specified by:
detectIfNonein interfaceDoubleIterable
-
sum
public double sum()
- Specified by:
sumin interfaceDoubleIterable
-
max
public double max()
- Specified by:
maxin interfaceDoubleIterable
-
maxIfEmpty
public double maxIfEmpty(double defaultValue)
- Specified by:
maxIfEmptyin interfaceDoubleIterable
-
min
public double min()
- Specified by:
minin interfaceDoubleIterable
-
minIfEmpty
public double minIfEmpty(double defaultValue)
- Specified by:
minIfEmptyin interfaceDoubleIterable
-
average
public double average()
- Specified by:
averagein interfaceDoubleIterable
-
median
public double median()
- Specified by:
medianin interfaceDoubleIterable
-
addToValue
public double addToValue(float key, double toBeAdded)- Specified by:
addToValuein interfaceMutableFloatDoubleMap
-
toSortedArray
public double[] toSortedArray()
- Specified by:
toSortedArrayin interfaceDoubleIterable
-
toSortedList
public MutableDoubleList toSortedList()
- Specified by:
toSortedListin interfaceDoubleIterable
-
toArray
public double[] toArray()
- Specified by:
toArrayin interfaceDoubleIterable
-
toArray
public double[] toArray(double[] target)
- Specified by:
toArrayin interfaceDoubleIterable
-
contains
public boolean contains(double value)
- Specified by:
containsin interfaceDoubleIterable
-
containsAll
public boolean containsAll(double... source)
- Specified by:
containsAllin interfaceDoubleIterable
-
containsAll
public boolean containsAll(DoubleIterable source)
- Specified by:
containsAllin interfaceDoubleIterable
-
toList
public MutableDoubleList toList()
- Specified by:
toListin interfaceDoubleIterable
-
toSet
public MutableDoubleSet toSet()
- Specified by:
toSetin interfaceDoubleIterable
-
toBag
public MutableDoubleBag toBag()
- Specified by:
toBagin interfaceDoubleIterable
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazyin interfaceDoubleIterable
-
withKeyValue
public MutableFloatDoubleMap withKeyValue(float key, double value)
- Specified by:
withKeyValuein interfaceMutableFloatDoubleMap
-
withoutKey
public MutableFloatDoubleMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatDoubleMap
-
withoutAllKeys
public MutableFloatDoubleMap withoutAllKeys(FloatIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableFloatDoubleMap
-
asUnmodifiable
public MutableFloatDoubleMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatDoubleMap
-
asSynchronized
public MutableFloatDoubleMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatDoubleMap
-
toImmutable
public ImmutableFloatDoubleMap toImmutable()
- Specified by:
toImmutablein interfaceFloatDoubleMap
-
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 MutableFloatSet keySet()
- Specified by:
keySetin interfaceFloatDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
valuesin interfaceDoubleValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceFloatDoubleMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatDoubleMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceFloatDoubleMap- 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, ObjectDoubleToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceDoubleIterable
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
- Specified by:
chunkin interfaceDoubleIterable
-
-