Class LinearMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
net.cscott.jutil.LinearMap<K,V>
All Implemented Interfaces:
Map<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.
Author:
Felix S. Klock II <pnkfelix@mit.edu>
  • Constructor Details

    • LinearMap

      public LinearMap()
      Creates a LinearMap.
    • LinearMap

      public LinearMap(Map<? extends K,? extends V> map)
      Creates a LinearMap with the same mappings as map. A change to one map does not change the other.
    • LinearMap

      public LinearMap(int capacity)
      Creates a LinearMap with specified capacity.
  • Method Details