public class IntFloatDynamicMap extends Object implements DynamicMap
Constructor and Description |
---|
IntFloatDynamicMap(int expectedKeyMax,
float emptyValue)
Create map with expected max value of key.
|
Modifier and Type | Method and Description |
---|---|
void |
forEachValue(FloatConsumer consumer) |
float |
get(int key) |
void |
put(int key,
float value) |
void |
remove(int key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mapExpectedElements, threshold, useArrayBased
public IntFloatDynamicMap(int expectedKeyMax, float emptyValue)
>= expectedKeyMax
.
But putting key much larger than expectedKeyMax
is discourage since it can leads to use LOT OF memory.public void put(int key, float value)
public float get(int key)
public void forEachValue(FloatConsumer consumer)
public void remove(int key)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.