public class IntIntDynamicMap extends Object implements DynamicMap
Constructor and Description |
---|
IntIntDynamicMap(int expectedKeyMax,
int emptyValue)
Create map with expected max value of key.
|
Modifier and Type | Method and Description |
---|---|
void |
forEachValue(IntConsumer consumer) |
int |
get(int key) |
void |
put(int key,
int value) |
void |
remove(int key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mapExpectedElements, threshold, useArrayBased
public IntIntDynamicMap(int expectedKeyMax, int 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, int value)
public int get(int key)
public void forEachValue(IntConsumer consumer)
public void remove(int key)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.