Class YLongToLongMap
java.lang.Object
de.hybris.platform.util.collections.fast.YLongToLongMap
Map which maps key of primitive type long to value of primitive type long.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(long key) Checks whether map contains entry with given key.longget(long key) Gets a value mapped by a given key.longlongput(long key, long value) Puts a mapping between given key and given value to the map.
-
Constructor Details
-
YLongToLongMap
public YLongToLongMap()Creates an empty map.
-
-
Method Details
-
getEmptyValue
public long getEmptyValue()- Returns:
- "empty value"
- See Also:
-
put
public long put(long key, long value) Puts a mapping between given key and given value to the map.- Parameters:
key- key of the mappingvalue- value of the mapping- Returns:
- previous value of the key, or an
empty valueif there was no given key in the map. - See Also:
-
get
public long get(long key) Gets a value mapped by a given key.- Parameters:
key- key of the mapping- Returns:
- value associated with given key or an
empty valueif there is no given key in the map
-
containsKey
public boolean containsKey(long key) Checks whether map contains entry with given key.- Parameters:
key- key to check- Returns:
trueif map contains mapping with given key,falseotherwise
-