Class YLongToByteMap
java.lang.Object
de.hybris.platform.util.collections.fast.YLongToByteMap
Map which maps key of primitive type long to value of primitive type byte.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty map.YLongToByteMap(int initialCapacity) Creates an empty map with preallocated space for entries. -
Method Summary
-
Constructor Details
-
YLongToByteMap
public YLongToByteMap()Creates an empty map. -
YLongToByteMap
public YLongToByteMap(int initialCapacity) Creates an empty map with preallocated space for entries.- Parameters:
initialCapacity- initial capacity of the map
-
-
Method Details
-
getEmptyValue
public byte getEmptyValue()- Returns:
- "empty value"
- See Also:
-
put
public byte put(long key, byte 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 byte 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
-