net.cscott.jutil
public class LinearMap<K,V> extends AbstractMap<K,V>
LinearMap
is a simplistic light-weight
Map
designed for use when the number of entries is
small. It is backed by a LinearSet
.
Version: $Id: LinearMap.java,v 1.2 2004/01/13 01:28:37 cananian Exp $
Constructor Summary | |
---|---|
LinearMap() Creates a LinearMap . | |
LinearMap(Map<K,V> map) | |
LinearMap(int capacity) Creates a LinearMap with specified capacity. |
Method Summary | |
---|---|
Set<Entry<K,V>> | entrySet() |
V | put(K key, V value) |
V | remove(Object key) |
LinearMap
.LinearMap
with specified capacity.