JUtil

net.cscott.jutil
Class MultiMapFactory<K,V>

java.lang.Object
  extended by net.cscott.jutil.MapFactory<K,V>
      extended by net.cscott.jutil.MultiMapFactory<K,V>
Direct Known Subclasses:
GenericMultiMapFactory, PersistentMultiMapFactory

public abstract class MultiMapFactory<K,V>
extends MapFactory<K,V>

MultiMapFactory is a MultiMap generator. Subclasses should implement constructions of specific types of MultiMaps. Subclasses *must* implement at least one of the makeMultiMap methods.

Version:
$Id: MultiMapFactory.java,v 1.5 2006-10-30 19:58:06 cananian Exp $
Author:
C. Scott Ananian

Constructor Summary
MultiMapFactory()
          Creates a MultiMapFactory.
 
Method Summary
 MultiMap<K,V> makeMap()
          Generates a new, mutable, empty Map.
 MultiMap<K,V> makeMap(Map<? extends K,? extends V> map)
          Generates a new Map, using the entries of map as a template for its initial mappings.
 MultiMap<K,V> makeMultiMap()
          Create a new, empty, MultiMap.
 MultiMap<K,V> makeMultiMap(MultiMap<? extends K,? extends V> map)
          Creates a new MultiMap initialized with all of the Map.Entrys in map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiMapFactory

public MultiMapFactory()
Creates a MultiMapFactory.

Method Detail

makeMap

public final MultiMap<K,V> makeMap()
Description copied from class: MapFactory
Generates a new, mutable, empty Map.

Overrides:
makeMap in class MapFactory<K,V>

makeMap

public final MultiMap<K,V> makeMap(Map<? extends K,? extends V> map)
Description copied from class: MapFactory
Generates a new Map, using the entries of map as a template for its initial mappings.

Specified by:
makeMap in class MapFactory<K,V>

makeMultiMap

public MultiMap<K,V> makeMultiMap()
Create a new, empty, MultiMap.


makeMultiMap

public MultiMap<K,V> makeMultiMap(MultiMap<? extends K,? extends V> map)
Creates a new MultiMap initialized with all of the Map.Entrys in map


JUtil

Copyright (c) 2006 C. Scott Ananian