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