Class LongMap<V>

java.lang.Object
java.util.AbstractMap<Long,V>
org.dellroad.stuff.util.LongMap<V>
All Implemented Interfaces:
Serializable, Cloneable, Map<Long,V>

public class LongMap<V> extends AbstractMap<Long,V> implements Cloneable, Serializable
A map with non-zero long keys.

This implementation uses long[] arrays and open addressing to minimize memory overhead. Equivalent Map methods taking long instead of Long are also provided.

Instances will throw IllegalStateException if their capacity is exceeded.

Instances do not accept zero keys and are not thread safe.

See Also: