Class YLongToLongMap
- java.lang.Object
-
- de.hybris.platform.util.collections.fast.YLongToLongMap
-
public class YLongToLongMap extends java.lang.ObjectMap which maps key of primitive type long to value of primitive type long.
-
-
Constructor Summary
Constructors Constructor Description YLongToLongMap()Creates an empty map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(long key)Checks whether map contains entry with given key.longget(long key)Gets a value mapped by a given key.longgetEmptyValue()longput(long key, long value)Puts a mapping between given key and given value to the map.
-
-
-
Method Detail
-
getEmptyValue
public long getEmptyValue()
- Returns:
- "empty value"
- See Also:
put(long, long),get(long)
-
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:
getEmptyValue()
-
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
-
-