public class YLongToIntMap
extends java.lang.Object
| Constructor and Description |
|---|
YLongToIntMap()
Creates an empty map.
|
YLongToIntMap(int initialCapacity)
Creates an empty map with preallocated space for entries.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get(long key)
Gets a value mapped by a given key.
|
int |
getEmptyValue()
|
int |
put(long key,
int value)
Puts a mapping between given key and given value to the map.
|
int |
remove(long key)
Removes mapping mapped by given key.
|
public YLongToIntMap()
public YLongToIntMap(int initialCapacity)
initialCapacity - initial capacity of the mappublic int getEmptyValue()
put(long, int),
get(long)public int put(long key,
int value)
key - key of the mappingvalue - value of the mappingempty value if there was no given key in the
map.getEmptyValue()public int get(long key)
key - key of the mappingempty value if there is no given key in the
mappublic int remove(long key)
key - key of the mappingempty value if there was no given key in the map.Copyright © 2018 SAP SE. All Rights Reserved.