be.SIRAPRISE.util
Class IntersectableHashMap<K,V>

java.lang.Object
  extended by be.SIRAPRISE.util.IntersectableMap<K,V>
      extended by be.SIRAPRISE.util.IntersectableHashMap<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
java.util.Map<K,V>

public class IntersectableHashMap<K,V>
extends IntersectableMap<K,V>

IntersectableHashMap is an extension of HashMap that has definitions for union, intersection and difference of maps, definitions that are loosely based on the definitions of those operators of set theory.

Author:
Erwin Smout

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
IntersectableHashMap()
          Initializes a DbmsHashMap of the default size
IntersectableHashMap(int q)
          Initializes a DbmsHashMap with an initial size that is given
IntersectableHashMap(int q, float loadFactor)
          Initializes a DbmsHashMap with an initial size that is given
IntersectableHashMap(java.util.Map<? extends K,? extends V> m)
          Initializes a DbmsHashMap with an initial size that is given
 
Method Summary
 
Methods inherited from class be.SIRAPRISE.util.IntersectableMap
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, intersect, intersect, isEmpty, keySet, minus, minus, put, putAll, remove, size, toString, union, union, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntersectableHashMap

public IntersectableHashMap()
Initializes a DbmsHashMap of the default size


IntersectableHashMap

public IntersectableHashMap(int q)
Initializes a DbmsHashMap with an initial size that is given

Parameters:
q - the initial size of the map

IntersectableHashMap

public IntersectableHashMap(int q,
                            float loadFactor)
Initializes a DbmsHashMap with an initial size that is given

Parameters:
q - the initial size of the map
loadFactor - the load factor to be used

IntersectableHashMap

public IntersectableHashMap(java.util.Map<? extends K,? extends V> m)
Initializes a DbmsHashMap with an initial size that is given

Parameters:
m - The map whose mappings are to be copied into the new map