Class SynchronizedDoubleFloatMap
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.primitive.SynchronizedDoubleFloatMap
-
- All Implemented Interfaces:
Serializable,FloatIterable,DoubleFloatMap,FloatValuesMap,MutableDoubleFloatMap,MutableFloatValuesMap,PrimitiveIterable
public class SynchronizedDoubleFloatMap extends Object implements MutableDoubleFloatMap, Serializable
A synchronized view of aMutableDoubleFloatMap. It is imperative that the user manually synchronize on the collection when iterating over it using theMutableFloatIteratoras perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
- Since:
- 3.1.
- See Also:
MutableDoubleFloatMap.asSynchronized(),MutableMap.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedDoubleFloatMap(MutableDoubleFloatMap map)SynchronizedDoubleFloatMap(MutableDoubleFloatMap map, Object newLock)
-
Method Summary
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleFloatMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.api.FloatIterable
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.FloatValuesMap
tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMap
withAllKeyValues
-
-
-
-
Constructor Detail
-
SynchronizedDoubleFloatMap
public SynchronizedDoubleFloatMap(MutableDoubleFloatMap map)
-
SynchronizedDoubleFloatMap
public SynchronizedDoubleFloatMap(MutableDoubleFloatMap map, Object newLock)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(double key, float value)- Specified by:
putin interfaceMutableDoubleFloatMap
-
putPair
public void putPair(DoubleFloatPair keyValuePair)
- Specified by:
putPairin interfaceMutableDoubleFloatMap
-
putAll
public void putAll(DoubleFloatMap map)
- Specified by:
putAllin interfaceMutableDoubleFloatMap
-
updateValues
public void updateValues(DoubleFloatToFloatFunction function)
- Specified by:
updateValuesin interfaceMutableDoubleFloatMap
-
removeKey
public void removeKey(double key)
- Specified by:
removeKeyin interfaceMutableDoubleFloatMap
-
remove
public void remove(double key)
- Specified by:
removein interfaceMutableDoubleFloatMap
-
removeKeyIfAbsent
public float removeKeyIfAbsent(double key, float value)- Specified by:
removeKeyIfAbsentin interfaceMutableDoubleFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(double key, float value)- Specified by:
getIfAbsentPutin interfaceMutableDoubleFloatMap
-
getAndPut
public float getAndPut(double key, float putValue, float defaultValue)- Specified by:
getAndPutin interfaceMutableDoubleFloatMap
-
getIfAbsentPut
public float getIfAbsentPut(double key, FloatFunction0 function)- Specified by:
getIfAbsentPutin interfaceMutableDoubleFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(double key, DoubleToFloatFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleFloatMap
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(double key, FloatFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleFloatMap
-
updateValue
public float updateValue(double key, float initialValueIfAbsent, FloatToFloatFunction function)- Specified by:
updateValuein interfaceMutableDoubleFloatMap
-
get
public float get(double key)
- Specified by:
getin interfaceDoubleFloatMap
-
getIfAbsent
public float getIfAbsent(double key, float ifAbsent)- Specified by:
getIfAbsentin interfaceDoubleFloatMap
-
getOrThrow
public float getOrThrow(double key)
- Specified by:
getOrThrowin interfaceDoubleFloatMap
-
containsKey
public boolean containsKey(double key)
- Specified by:
containsKeyin interfaceDoubleFloatMap
-
containsValue
public boolean containsValue(float value)
- Specified by:
containsValuein interfaceFloatValuesMap
-
forEachValue
public void forEachValue(FloatProcedure procedure)
- Specified by:
forEachValuein interfaceFloatValuesMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleFloatMap
-
forEachKeyValue
public void forEachKeyValue(DoubleFloatProcedure procedure)
- Specified by:
forEachKeyValuein interfaceDoubleFloatMap
-
keysView
public LazyDoubleIterable keysView()
- Specified by:
keysViewin interfaceDoubleFloatMap
-
keyValuesView
public RichIterable<DoubleFloatPair> keyValuesView()
- Specified by:
keyValuesViewin interfaceDoubleFloatMap
-
flipUniqueValues
public MutableFloatDoubleMap flipUniqueValues()
- Specified by:
flipUniqueValuesin interfaceDoubleFloatMap- Specified by:
flipUniqueValuesin interfaceMutableDoubleFloatMap
-
select
public MutableDoubleFloatMap select(DoubleFloatPredicate predicate)
- Specified by:
selectin interfaceDoubleFloatMap- Specified by:
selectin interfaceMutableDoubleFloatMap
-
reject
public MutableDoubleFloatMap reject(DoubleFloatPredicate predicate)
- Specified by:
rejectin interfaceDoubleFloatMap- Specified by:
rejectin interfaceMutableDoubleFloatMap
-
floatIterator
public MutableFloatIterator floatIterator()
This must be manually synchronized by the developer.- Specified by:
floatIteratorin interfaceFloatIterable- Specified by:
floatIteratorin interfaceMutableFloatValuesMap
-
each
public void each(FloatProcedure procedure)
- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
count
public int count(FloatPredicate predicate)
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
public boolean anySatisfy(FloatPredicate predicate)
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
public boolean allSatisfy(FloatPredicate predicate)
- Specified by:
allSatisfyin interfaceFloatIterable
-
noneSatisfy
public boolean noneSatisfy(FloatPredicate predicate)
- Specified by:
noneSatisfyin interfaceFloatIterable
-
select
public MutableFloatBag select(FloatPredicate predicate)
- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceFloatValuesMap- Specified by:
selectin interfaceMutableFloatValuesMap
-
reject
public MutableFloatBag reject(FloatPredicate predicate)
- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceFloatValuesMap- Specified by:
rejectin interfaceMutableFloatValuesMap
-
collect
public <V> MutableBag<V> collect(FloatToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceFloatIterable- Specified by:
collectin interfaceFloatValuesMap- Specified by:
collectin interfaceMutableFloatValuesMap
-
detectIfNone
public float detectIfNone(FloatPredicate predicate, float ifNone)
- Specified by:
detectIfNonein interfaceFloatIterable
-
sum
public double sum()
- Specified by:
sumin interfaceFloatIterable
-
max
public float max()
- Specified by:
maxin interfaceFloatIterable
-
maxIfEmpty
public float maxIfEmpty(float defaultValue)
- Specified by:
maxIfEmptyin interfaceFloatIterable
-
min
public float min()
- Specified by:
minin interfaceFloatIterable
-
minIfEmpty
public float minIfEmpty(float defaultValue)
- Specified by:
minIfEmptyin interfaceFloatIterable
-
average
public double average()
- Specified by:
averagein interfaceFloatIterable
-
median
public double median()
- Specified by:
medianin interfaceFloatIterable
-
addToValue
public float addToValue(double key, float toBeAdded)- Specified by:
addToValuein interfaceMutableDoubleFloatMap
-
toSortedArray
public float[] toSortedArray()
- Specified by:
toSortedArrayin interfaceFloatIterable
-
toSortedList
public MutableFloatList toSortedList()
- Specified by:
toSortedListin interfaceFloatIterable
-
toArray
public float[] toArray()
- Specified by:
toArrayin interfaceFloatIterable
-
toArray
public float[] toArray(float[] target)
- Specified by:
toArrayin interfaceFloatIterable
-
contains
public boolean contains(float value)
- Specified by:
containsin interfaceFloatIterable
-
containsAll
public boolean containsAll(float... source)
- Specified by:
containsAllin interfaceFloatIterable
-
containsAll
public boolean containsAll(FloatIterable source)
- Specified by:
containsAllin interfaceFloatIterable
-
toList
public MutableFloatList toList()
- Specified by:
toListin interfaceFloatIterable
-
toSet
public MutableFloatSet toSet()
- Specified by:
toSetin interfaceFloatIterable
-
toBag
public MutableFloatBag toBag()
- Specified by:
toBagin interfaceFloatIterable
-
asLazy
public LazyFloatIterable asLazy()
- Specified by:
asLazyin interfaceFloatIterable
-
withKeyValue
public MutableDoubleFloatMap withKeyValue(double key, float value)
- Specified by:
withKeyValuein interfaceMutableDoubleFloatMap
-
withoutKey
public MutableDoubleFloatMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleFloatMap
-
withoutAllKeys
public MutableDoubleFloatMap withoutAllKeys(DoubleIterable keys)
- Specified by:
withoutAllKeysin interfaceMutableDoubleFloatMap
-
asUnmodifiable
public MutableDoubleFloatMap asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleFloatMap
-
asSynchronized
public MutableDoubleFloatMap asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleFloatMap
-
toImmutable
public ImmutableDoubleFloatMap toImmutable()
- Specified by:
toImmutablein interfaceDoubleFloatMap
-
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 MutableDoubleSet keySet()
- Specified by:
keySetin interfaceDoubleFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceFloatValuesMap
-
equals
public boolean equals(Object otherMap)
- Specified by:
equalsin interfaceDoubleFloatMap- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceDoubleFloatMap- Overrides:
hashCodein classObject
-
toString
public String toString()
- Specified by:
toStringin interfaceDoubleFloatMap- 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, ObjectFloatToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceFloatIterable
-
chunk
public RichIterable<FloatIterable> chunk(int size)
- Specified by:
chunkin interfaceFloatIterable
-
-