net.cscott.jutil

Class LinearMap<K,V>

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 $

Author: Felix S. Klock II

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()
Vput(K key, V value)
Vremove(Object key)

Constructor Detail

LinearMap

public LinearMap()
Creates a LinearMap.

LinearMap

public LinearMap(Map<K,V> map)

LinearMap

public LinearMap(int capacity)
Creates a LinearMap with specified capacity.

Method Detail

entrySet

public Set<Entry<K,V>> entrySet()

put

public V put(K key, V value)

remove

public V remove(Object key)
Copyright © 2003 C. Scott Ananian