Externalizable, Serializable, DoubleIterable, DoubleValuesMap, FloatDoubleMap, MutableDoubleValuesMap, MutableFloatDoubleMap, PrimitiveIterable, MutableFloatKeysMap, FloatKeysMappublic class FloatDoubleHashMap extends AbstractMutableDoubleValuesMap implements MutableFloatDoubleMap, Externalizable, MutableFloatKeysMap
| Constructor | Description | 
|---|---|
| FloatDoubleHashMap() | |
| FloatDoubleHashMap(int initialCapacity) | |
| FloatDoubleHashMap(FloatDoubleMap map) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| double | addToValue(float key,
          double toBeAdded) | |
| MutableFloatDoubleMap | asSynchronized() | |
| MutableFloatDoubleMap | asUnmodifiable() | |
| void | clear() | |
| void | compact() | Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels. | 
| boolean | containsKey(float key) | |
| MutableDoubleIterator | doubleIterator() | Returns a primitive iterator that can be used to iterate over the DoubleIterable in an
 imperative style. | 
| boolean | equals(Object obj) | Follows the same general contract as  Map.equals(Object). | 
| MutableDoubleFloatMap | flipUniqueValues() | Return the DoubleFloatMap that is obtained by flipping the direction of this map and making the associations
 from value to key. | 
| void | forEachKey(FloatProcedure procedure) | |
| void | forEachKeyValue(FloatDoubleProcedure procedure) | |
| double | get(float key) | |
| double | getIfAbsent(float key,
           double ifAbsent) | |
| double | getIfAbsentPut(float key,
              double value) | |
| double | getIfAbsentPut(float key,
              DoubleFunction0 function) | |
| <P> double | getIfAbsentPutWith(float key,
                  DoubleFunction<? super P> function,
                  P parameter) | |
| double | getIfAbsentPutWithKey(float key,
                     FloatToDoubleFunction function) | |
| double | getOrThrow(float key) | |
| int | hashCode() | Follows the same general contract as  Map.hashCode(). | 
| <V> V | injectInto(V injectedValue,
          ObjectDoubleToObjectFunction<? super V,? extends V> function) | |
| MutableFloatSet | keySet() | |
| LazyFloatIterable | keysView() | |
| RichIterable<FloatDoublePair> | keyValuesView() | |
| static FloatDoubleHashMap | newWithKeysValues(float key1,
                 double value1) | |
| static FloatDoubleHashMap | newWithKeysValues(float key1,
                 double value1,
                 float key2,
                 double value2) | |
| static FloatDoubleHashMap | newWithKeysValues(float key1,
                 double value1,
                 float key2,
                 double value2,
                 float key3,
                 double value3) | |
| static FloatDoubleHashMap | newWithKeysValues(float key1,
                 double value1,
                 float key2,
                 double value2,
                 float key3,
                 double value3,
                 float key4,
                 double value4) | |
| void | put(float key,
   double value) | |
| void | putAll(FloatDoubleMap map) | |
| void | readExternal(ObjectInput in) | |
| FloatDoubleHashMap | reject(FloatDoublePredicate predicate) | |
| void | remove(float key) | |
| void | removeKey(float key) | |
| double | removeKeyIfAbsent(float key,
                 double value) | |
| FloatDoubleHashMap | select(FloatDoublePredicate predicate) | |
| ImmutableFloatDoubleMap | toImmutable() | |
| String | toString() | Returns a string with the elements of this iterable separated by commas with spaces and
 enclosed in square brackets. | 
| double | updateValue(float key,
           double initialValueIfAbsent,
           DoubleToDoubleFunction function) | |
| void | updateValues(FloatDoubleToDoubleFunction function) | Updates the values in-place. | 
| MutableDoubleCollection | values() | |
| FloatDoubleHashMap | withKeysValues(float key1,
              double value1,
              float key2,
              double value2) | |
| FloatDoubleHashMap | withKeysValues(float key1,
              double value1,
              float key2,
              double value2,
              float key3,
              double value3) | |
| FloatDoubleHashMap | withKeysValues(float key1,
              double value1,
              float key2,
              double value2,
              float key3,
              double value3,
              float key4,
              double value4) | |
| FloatDoubleHashMap | withKeyValue(float key1,
            double value1) | |
| FloatDoubleHashMap | withoutAllKeys(FloatIterable keys) | |
| FloatDoubleHashMap | withoutKey(float key) | |
| void | writeExternal(ObjectOutput out) | 
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListallSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsValue, forEachValue, tapisEmpty, notEmpty, sizecollect, reject, selectputPair, withAllKeyValuesappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizepublic FloatDoubleHashMap()
public FloatDoubleHashMap(int initialCapacity)
public FloatDoubleHashMap(FloatDoubleMap map)
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1)
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2)
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)
public static FloatDoubleHashMap newWithKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)
public boolean equals(Object obj)
FloatDoubleMapMap.equals(Object).equals in interface FloatDoubleMapequals in class Objectpublic int hashCode()
FloatDoubleMapMap.hashCode().hashCode in interface FloatDoubleMaphashCode in class Objectpublic String toString()
PrimitiveIterable
 Assert.assertEquals("[]", IntLists.mutable.empty().toString());
 Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
 Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
 toString in interface FloatDoubleMaptoString in interface PrimitiveIterabletoString in class AbstractDoubleIterableAbstractCollection.toString()public MutableDoubleIterator doubleIterator()
DoubleIterabledoubleIterator in interface DoubleIterabledoubleIterator in interface MutableDoubleValuesMappublic <V> V injectInto(V injectedValue,
                        ObjectDoubleToObjectFunction<? super V,? extends V> function)
injectInto in interface DoubleIterablepublic void clear()
clear in interface MutableDoubleValuesMapclear in interface MutableFloatKeysMappublic void put(float key,
                double value)
put in interface MutableFloatDoubleMappublic void putAll(FloatDoubleMap map)
putAll in interface MutableFloatDoubleMappublic void updateValues(FloatDoubleToDoubleFunction function)
MutableFloatDoubleMapupdateValues in interface MutableFloatDoubleMapfunction - that takes a key and its value and that returns a new value for this keypublic void removeKey(float key)
removeKey in interface MutableFloatDoubleMapremoveKey in interface MutableFloatKeysMappublic void remove(float key)
remove in interface MutableFloatDoubleMappublic double removeKeyIfAbsent(float key,
                                double value)
removeKeyIfAbsent in interface MutableFloatDoubleMappublic double getIfAbsentPut(float key,
                             double value)
getIfAbsentPut in interface MutableFloatDoubleMappublic double getIfAbsentPut(float key,
                             DoubleFunction0 function)
getIfAbsentPut in interface MutableFloatDoubleMappublic <P> double getIfAbsentPutWith(float key,
                                     DoubleFunction<? super P> function,
                                     P parameter)
getIfAbsentPutWith in interface MutableFloatDoubleMappublic double getIfAbsentPutWithKey(float key,
                                    FloatToDoubleFunction function)
getIfAbsentPutWithKey in interface MutableFloatDoubleMappublic double addToValue(float key,
                         double toBeAdded)
addToValue in interface MutableFloatDoubleMappublic double updateValue(float key,
                          double initialValueIfAbsent,
                          DoubleToDoubleFunction function)
updateValue in interface MutableFloatDoubleMappublic FloatDoubleHashMap withKeyValue(float key1, double value1)
withKeyValue in interface MutableFloatDoubleMappublic FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2)
public FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3)
public FloatDoubleHashMap withKeysValues(float key1, double value1, float key2, double value2, float key3, double value3, float key4, double value4)
public FloatDoubleHashMap withoutKey(float key)
withoutKey in interface MutableFloatDoubleMappublic FloatDoubleHashMap withoutAllKeys(FloatIterable keys)
withoutAllKeys in interface MutableFloatDoubleMappublic MutableFloatDoubleMap asUnmodifiable()
asUnmodifiable in interface MutableFloatDoubleMappublic MutableFloatDoubleMap asSynchronized()
asSynchronized in interface MutableFloatDoubleMappublic ImmutableFloatDoubleMap toImmutable()
toImmutable in interface FloatDoubleMappublic double get(float key)
get in interface FloatDoubleMappublic double getIfAbsent(float key,
                          double ifAbsent)
getIfAbsent in interface FloatDoubleMappublic double getOrThrow(float key)
getOrThrow in interface FloatDoubleMappublic boolean containsKey(float key)
containsKey in interface FloatDoubleMapcontainsKey in interface FloatKeysMappublic void forEachKey(FloatProcedure procedure)
forEachKey in interface FloatDoubleMapforEachKey in interface FloatKeysMappublic void forEachKeyValue(FloatDoubleProcedure procedure)
forEachKeyValue in interface FloatDoubleMappublic LazyFloatIterable keysView()
keysView in interface FloatDoubleMappublic RichIterable<FloatDoublePair> keyValuesView()
keyValuesView in interface FloatDoubleMappublic MutableDoubleFloatMap flipUniqueValues()
FloatDoubleMapflipUniqueValues in interface FloatDoubleMapflipUniqueValues in interface MutableFloatDoubleMappublic FloatDoubleHashMap select(FloatDoublePredicate predicate)
select in interface FloatDoubleMapselect in interface MutableFloatDoubleMappublic FloatDoubleHashMap reject(FloatDoublePredicate predicate)
reject in interface FloatDoubleMapreject in interface MutableFloatDoubleMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableFloatSet keySet()
keySet in interface FloatDoubleMappublic MutableDoubleCollection values()
values in interface DoubleValuesMapCopyright © 2004–2019. All rights reserved.