Class FloatDoubleHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractDoubleIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.FloatDoubleHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,DoubleIterable,DoubleValuesMap,FloatDoubleMap,MutableDoubleValuesMap,MutableFloatDoubleMap,PrimitiveIterable,MutableFloatKeysMap,FloatKeysMap
public class FloatDoubleHashMap extends AbstractMutableDoubleValuesMap implements MutableFloatDoubleMap, Externalizable, MutableFloatKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatDoubleHashMap()FloatDoubleHashMap(int initialCapacity)FloatDoubleHashMap(FloatDoubleMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doubleaddToValue(float key, double toBeAdded)booleanallSatisfyKeyValue(FloatDoublePredicate predicate)MutableFloatDoubleMapasSynchronized()MutableFloatDoubleMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(float key)MutableDoubleIteratordoubleIterator()booleanequals(Object obj)MutableDoubleFloatMapflipUniqueValues()voidforEachKey(FloatProcedure procedure)voidforEachKeyValue(FloatDoubleProcedure procedure)doubleget(float key)doublegetAndPut(float key, double putValue, double defaultValue)doublegetIfAbsent(float key, double ifAbsent)doublegetIfAbsentPut(float key, double value)doublegetIfAbsentPut(float key, DoubleFunction0 function)<P> doublegetIfAbsentPutWith(float key, DoubleFunction<? super P> function, P parameter)doublegetIfAbsentPutWithKey(float key, FloatToDoubleFunction function)doublegetOrThrow(float key)inthashCode()<V> VinjectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)MutableFloatSetkeySet()LazyFloatIterablekeysView()RichIterable<FloatDoublePair>keyValuesView()static FloatDoubleHashMapnewWithKeysValues(float key1, double value1)static FloatDoubleHashMapnewWithKeysValues(float key1, double value1, float key2, double value2)static FloatDoubleHashMapnewWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)static FloatDoubleHashMapnewWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)voidput(float key, double value)voidputAll(FloatDoubleMap map)voidreadExternal(ObjectInput in)FloatDoubleHashMapreject(FloatDoublePredicate predicate)voidremove(float key)voidremoveKey(float key)doubleremoveKeyIfAbsent(float key, double value)FloatDoubleHashMapselect(FloatDoublePredicate predicate)ImmutableFloatDoubleMaptoImmutable()StringtoString()booleantrimToSize()doubleupdateValue(float key, double initialValueIfAbsent, DoubleToDoubleFunction function)voidupdateValues(FloatDoubleToDoubleFunction function)MutableDoubleCollectionvalues()FloatDoubleHashMapwithKeysValues(float key1, double value1, float key2, double value2)FloatDoubleHashMapwithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)FloatDoubleHashMapwithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)FloatDoubleHashMapwithKeyValue(float key1, double value1)FloatDoubleHashMapwithoutAllKeys(FloatIterable keys)FloatDoubleHashMapwithoutKey(float key)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableDoubleValuesMap
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEachValue, isEmpty, max, min, notEmpty, reject, select, size, sum, toArray, toArray
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractDoubleIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.DoubleIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.FloatDoubleMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.FloatKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatDoubleMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
FloatDoubleHashMap
public FloatDoubleHashMap()
-
FloatDoubleHashMap
public FloatDoubleHashMap(int initialCapacity)
-
FloatDoubleHashMap
public FloatDoubleHashMap(FloatDoubleMap map)
-
-
Method Detail
-
newWithKeysValues
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1)
-
newWithKeysValues
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2)
-
newWithKeysValues
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)
-
newWithKeysValues
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)
-
equals
public boolean equals(Object obj)
- 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 classAbstractDoubleIterable
-
doubleIterator
public MutableDoubleIterator doubleIterator()
- Specified by:
doubleIteratorin interfaceDoubleIterable- Specified by:
doubleIteratorin interfaceMutableDoubleValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectDoubleToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceDoubleIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableDoubleValuesMap- Specified by:
clearin interfaceMutableFloatKeysMap
-
put
public void put(float key, double value)- Specified by:
putin 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- Specified by:
removeKeyin interfaceMutableFloatKeysMap
-
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
-
getIfAbsentPutWith
public <P> double getIfAbsentPutWith(float key, DoubleFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableFloatDoubleMap
-
getIfAbsentPutWithKey
public double getIfAbsentPutWithKey(float key, FloatToDoubleFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableFloatDoubleMap
-
addToValue
public double addToValue(float key, double toBeAdded)- Specified by:
addToValuein interfaceMutableFloatDoubleMap
-
updateValue
public double updateValue(float key, double initialValueIfAbsent, DoubleToDoubleFunction function)- Specified by:
updateValuein interfaceMutableFloatDoubleMap
-
withKeyValue
public FloatDoubleHashMap withKeyValue(float key1, double value1)
- Specified by:
withKeyValuein interfaceMutableFloatDoubleMap
-
withKeysValues
public FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2)
-
withKeysValues
public FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)
-
withKeysValues
public FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)
-
withoutKey
public FloatDoubleHashMap withoutKey(float key)
- Specified by:
withoutKeyin interfaceMutableFloatDoubleMap
-
withoutAllKeys
public FloatDoubleHashMap 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
-
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- Specified by:
containsKeyin interfaceFloatKeysMap
-
forEachKey
public void forEachKey(FloatProcedure procedure)
- Specified by:
forEachKeyin interfaceFloatDoubleMap- Specified by:
forEachKeyin interfaceFloatKeysMap
-
forEachKeyValue
public void forEachKeyValue(FloatDoubleProcedure procedure)
- Specified by:
forEachKeyValuein interfaceFloatDoubleMap
-
allSatisfyKeyValue
public boolean allSatisfyKeyValue(FloatDoublePredicate predicate)
- Specified by:
allSatisfyKeyValuein interfaceFloatDoubleMap- Since:
- 12.0
-
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 FloatDoubleHashMap select(FloatDoublePredicate predicate)
- Specified by:
selectin interfaceFloatDoubleMap- Specified by:
selectin interfaceMutableFloatDoubleMap
-
reject
public FloatDoubleHashMap reject(FloatDoublePredicate predicate)
- Specified by:
rejectin interfaceFloatDoubleMap- Specified by:
rejectin interfaceMutableFloatDoubleMap
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
trimToSize
public boolean trimToSize()
- Since:
- 12.0
-
compact
@Deprecated public void compact()
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
-
keySet
public MutableFloatSet keySet()
- Specified by:
keySetin interfaceFloatDoubleMap
-
values
public MutableDoubleCollection values()
- Specified by:
valuesin interfaceDoubleValuesMap
-
-