public class YLongToLongMap
extends java.lang.Object
| Constructor and Description |
|---|
YLongToLongMap()
Creates an empty map.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(long key)
Checks whether map contains entry with given key.
|
long |
get(long key)
Gets a value mapped by a given key.
|
long |
getEmptyValue()
|
long |
put(long key,
long value)
Puts a mapping between given key and given value to the map.
|
public long getEmptyValue()
put(long, long),
get(long)public long put(long key,
long value)
key - key of the mappingvalue - value of the mappingempty value if there was no given key in the
map.getEmptyValue()public long get(long key)
key - key of the mappingempty value if there is no given key in the
mappublic boolean containsKey(long key)
key - key to checktrue if map contains mapping with given key, false otherwiseCopyright © 2018 SAP SE. All Rights Reserved.