Class ObjectMap
java.lang.Object
com.ibm.dtfj.corereaders.zos.util.AbstractHashMap
com.ibm.dtfj.corereaders.zos.util.ObjectMap
- All Implemented Interfaces:
Serializable
This is a simple class to map an integer key to an object value. It has a smaller footprint
than the various standard Java classes owing to the use of open addressing (see description
of
AbstractHashMap
).- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(long key) Returns the value mapped by the given key.void
Add the key/value pair to the map.remove
(long key) Remove the key from the map and return the old value.Object[]
Returns an array containing the values where the returned runtime array type is derived from the given array (or the given array is simply reused if there is room).Methods declared in class com.ibm.dtfj.corereaders.zos.util.AbstractHashMap
getKeys, getKeysArray
-
Constructor Details
-
ObjectMap
public ObjectMap()
-
-
Method Details
-
get
Returns the value mapped by the given key.- Returns:
- the value or null if it cannot be found
-
put
Add the key/value pair to the map. -
remove
Remove the key from the map and return the old value. -
toArray
-