Package org.glassfish.pfl.basic.contain
Class DenseIntMapImpl<E>
java.lang.Object
org.glassfish.pfl.basic.contain.DenseIntMapImpl<E>
- All Implemented Interfaces:
IntMap<E>
Utility for managing mappings from densely allocated integer
keys to arbitrary objects. This should only be used for
keys in the range 0..max such that "most" of the key space is actually
used.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
list
-
-
Constructor Details
-
DenseIntMapImpl
public DenseIntMapImpl()
-
-
Method Details
-
checkKey
private void checkKey(int key) -
get
If key >= 0, return the value bound to key, or null if none. Throws IllegalArgumentException if key <0. -
set
If key >= 0, bind value to the key. Throws IllegalArgumentException if key <0. -
extend
private void extend(int index)
-