V
- type of the object stored in the map.public class BiInt2ObjectMap<V> extends Object
Long2ObjectHashMap
and combines both int keys into a long key.Modifier and Type | Class and Description |
---|---|
static interface |
BiInt2ObjectMap.EntryConsumer<V>
Handler for a map entry
|
Constructor and Description |
---|
BiInt2ObjectMap()
Construct an empty map
|
BiInt2ObjectMap(int initialCapacity,
double loadFactor)
|
Modifier and Type | Method and Description |
---|---|
int |
capacity()
Get the total capacity for the map to which the load factor with be a fraction of.
|
void |
forEach(BiInt2ObjectMap.EntryConsumer<V> consumer)
Iterate over the entries of the map
|
void |
forEach(Consumer<V> consumer)
Iterate over the values in the map
|
V |
get(int keyPartA,
int keyPartB)
Retrieve a value from the map.
|
boolean |
isEmpty()
Is map empty or not.
|
double |
loadFactor()
Get the load factor beyond which the map will increase size.
|
V |
put(int keyPartA,
int keyPartB,
V value)
Put a value into the map.
|
V |
remove(int keyPartA,
int keyPartB)
Remove a value from the map and return the value.
|
int |
size()
Return the number of unique entries in the map.
|
public BiInt2ObjectMap()
public BiInt2ObjectMap(int initialCapacity, double loadFactor)
initialCapacity
- for the underlying hash maploadFactor
- for the underlying hash mappublic int capacity()
public double loadFactor()
public V put(int keyPartA, int keyPartB, V value)
keyPartA
- for the keykeyPartB
- for the keyvalue
- to put into the mappublic V get(int keyPartA, int keyPartB)
keyPartA
- for the keykeyPartB
- for the keypublic V remove(int keyPartA, int keyPartB)
keyPartA
- for the keykeyPartB
- for the keypublic void forEach(BiInt2ObjectMap.EntryConsumer<V> consumer)
consumer
- to apply to each entry in the mappublic void forEach(Consumer<V> consumer)
consumer
- to apply to each value in the mappublic int size()
public boolean isEmpty()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.