Class DoubleFloatHashMap
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractFloatIterable
-
- org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
-
- org.eclipse.collections.impl.map.mutable.primitive.DoubleFloatHashMap
-
- All Implemented Interfaces:
Externalizable,Serializable,FloatIterable,DoubleFloatMap,FloatValuesMap,MutableDoubleFloatMap,MutableFloatValuesMap,PrimitiveIterable,MutableDoubleKeysMap,DoubleKeysMap
public class DoubleFloatHashMap extends AbstractMutableFloatValuesMap implements MutableDoubleFloatMap, Externalizable, MutableDoubleKeysMap
This file was automatically generated from template file primitivePrimitiveHashMap.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DoubleFloatHashMap()DoubleFloatHashMap(int initialCapacity)DoubleFloatHashMap(DoubleFloatMap map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description floataddToValue(double key, float toBeAdded)MutableDoubleFloatMapasSynchronized()MutableDoubleFloatMapasUnmodifiable()voidclear()voidcompact()Deprecated.since 12.0 - UsetrimToSize()insteadbooleancontainsKey(double key)booleanequals(Object obj)MutableFloatDoubleMapflipUniqueValues()MutableFloatIteratorfloatIterator()voidforEachKey(DoubleProcedure procedure)voidforEachKeyValue(DoubleFloatProcedure procedure)floatget(double key)floatgetAndPut(double key, float putValue, float defaultValue)floatgetIfAbsent(double key, float ifAbsent)floatgetIfAbsentPut(double key, float value)floatgetIfAbsentPut(double key, FloatFunction0 function)<P> floatgetIfAbsentPutWith(double key, FloatFunction<? super P> function, P parameter)floatgetIfAbsentPutWithKey(double key, DoubleToFloatFunction function)floatgetOrThrow(double key)inthashCode()<V> VinjectInto(V injectedValue, ObjectFloatToObjectFunction<? super V,? extends V> function)MutableDoubleSetkeySet()LazyDoubleIterablekeysView()RichIterable<DoubleFloatPair>keyValuesView()static DoubleFloatHashMapnewWithKeysValues(double key1, float value1)static DoubleFloatHashMapnewWithKeysValues(double key1, float value1, double key2, float value2)static DoubleFloatHashMapnewWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3)static DoubleFloatHashMapnewWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4)voidput(double key, float value)voidputAll(DoubleFloatMap map)voidreadExternal(ObjectInput in)DoubleFloatHashMapreject(DoubleFloatPredicate predicate)voidremove(double key)voidremoveKey(double key)floatremoveKeyIfAbsent(double key, float value)DoubleFloatHashMapselect(DoubleFloatPredicate predicate)ImmutableDoubleFloatMaptoImmutable()StringtoString()booleantrimToSize()floatupdateValue(double key, float initialValueIfAbsent, FloatToFloatFunction function)voidupdateValues(DoubleFloatToFloatFunction function)MutableFloatCollectionvalues()DoubleFloatHashMapwithKeysValues(double key1, float value1, double key2, float value2)DoubleFloatHashMapwithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3)DoubleFloatHashMapwithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4)DoubleFloatHashMapwithKeyValue(double key1, float value1)DoubleFloatHashMapwithoutAllKeys(DoubleIterable keys)DoubleFloatHashMapwithoutKey(double key)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableFloatValuesMap
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.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.DoubleFloatMap
injectIntoKeyValue
-
Methods inherited from interface org.eclipse.collections.impl.map.primitive.DoubleKeysMap
isEmpty, notEmpty, size
-
Methods inherited from interface org.eclipse.collections.api.FloatIterable
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.FloatValuesMap
containsValue, forEachValue, tap
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableDoubleFloatMap
putPair, withAllKeyValues
-
Methods inherited from interface org.eclipse.collections.api.map.primitive.MutableFloatValuesMap
collect, reject, select
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
-
-
-
Constructor Detail
-
DoubleFloatHashMap
public DoubleFloatHashMap()
-
DoubleFloatHashMap
public DoubleFloatHashMap(int initialCapacity)
-
DoubleFloatHashMap
public DoubleFloatHashMap(DoubleFloatMap map)
-
-
Method Detail
-
newWithKeysValues
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1)
-
newWithKeysValues
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2)
-
newWithKeysValues
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3)
-
newWithKeysValues
public static DoubleFloatHashMap newWithKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4)
-
equals
public boolean equals(Object obj)
- 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 classAbstractFloatIterable
-
floatIterator
public MutableFloatIterator floatIterator()
- Specified by:
floatIteratorin interfaceFloatIterable- Specified by:
floatIteratorin interfaceMutableFloatValuesMap
-
injectInto
public <V> V injectInto(V injectedValue, ObjectFloatToObjectFunction<? super V,? extends V> function)- Specified by:
injectIntoin interfaceFloatIterable
-
clear
public void clear()
- Specified by:
clearin interfaceMutableDoubleKeysMap- Specified by:
clearin interfaceMutableFloatValuesMap
-
put
public void put(double key, float value)- Specified by:
putin 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- Specified by:
removeKeyin interfaceMutableDoubleKeysMap
-
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
-
getIfAbsentPutWith
public <P> float getIfAbsentPutWith(double key, FloatFunction<? super P> function, P parameter)- Specified by:
getIfAbsentPutWithin interfaceMutableDoubleFloatMap
-
getIfAbsentPutWithKey
public float getIfAbsentPutWithKey(double key, DoubleToFloatFunction function)- Specified by:
getIfAbsentPutWithKeyin interfaceMutableDoubleFloatMap
-
addToValue
public float addToValue(double key, float toBeAdded)- Specified by:
addToValuein interfaceMutableDoubleFloatMap
-
updateValue
public float updateValue(double key, float initialValueIfAbsent, FloatToFloatFunction function)- Specified by:
updateValuein interfaceMutableDoubleFloatMap
-
withKeyValue
public DoubleFloatHashMap withKeyValue(double key1, float value1)
- Specified by:
withKeyValuein interfaceMutableDoubleFloatMap
-
withKeysValues
public DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2)
-
withKeysValues
public DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2, double key3, float value3)
-
withKeysValues
public DoubleFloatHashMap withKeysValues(double key1, float value1, double key2, float value2, double key3, float value3, double key4, float value4)
-
withoutKey
public DoubleFloatHashMap withoutKey(double key)
- Specified by:
withoutKeyin interfaceMutableDoubleFloatMap
-
withoutAllKeys
public DoubleFloatHashMap 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
-
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- Specified by:
containsKeyin interfaceDoubleKeysMap
-
forEachKey
public void forEachKey(DoubleProcedure procedure)
- Specified by:
forEachKeyin interfaceDoubleFloatMap- Specified by:
forEachKeyin interfaceDoubleKeysMap
-
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 DoubleFloatHashMap select(DoubleFloatPredicate predicate)
- Specified by:
selectin interfaceDoubleFloatMap- Specified by:
selectin interfaceMutableDoubleFloatMap
-
reject
public DoubleFloatHashMap reject(DoubleFloatPredicate predicate)
- Specified by:
rejectin interfaceDoubleFloatMap- Specified by:
rejectin interfaceMutableDoubleFloatMap
-
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 MutableDoubleSet keySet()
- Specified by:
keySetin interfaceDoubleFloatMap
-
values
public MutableFloatCollection values()
- Specified by:
valuesin interfaceFloatValuesMap
-
-