JUtil

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

java.lang.Object
  extended by net.cscott.jutil.MapFactory<K,V>
      extended by net.cscott.jutil.MultiMapFactory<K,V>
          extended by net.cscott.jutil.GenericMultiMapFactory<K,V>

public class GenericMultiMapFactory<K,V>
extends MultiMapFactory<K,V>

GenericMultiMapFactory implements MultiMapFactory using instances of GenericMultiMap.

Version:
$Id: GenericMultiMapFactory.java,v 1.2 2006-10-30 19:58:05 cananian Exp $
Author:
C. Scott Ananian

Constructor Summary
GenericMultiMapFactory()
          Create a new GenericMultiMapFactory, using a HashMap factory for the map and an AggregateSetFactory for the value collections.
GenericMultiMapFactory(MapFactory<K,Collection<V>> mf, CollectionFactory<V> cf)
          Create a new GenericMultiMapFactory, specifying the MapFactory and CollectionFactory to be used by the underlying GenericMultiMap.
 
Method Summary
 GenericMultiMap<K,V> makeMultiMap()
          Create a new GenericMultiMap.
 
Methods inherited from class net.cscott.jutil.MultiMapFactory
makeMap, makeMap, makeMultiMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericMultiMapFactory

public GenericMultiMapFactory(MapFactory<K,Collection<V>> mf,
                              CollectionFactory<V> cf)
Create a new GenericMultiMapFactory, specifying the MapFactory and CollectionFactory to be used by the underlying GenericMultiMap.


GenericMultiMapFactory

public GenericMultiMapFactory()
Create a new GenericMultiMapFactory, using a HashMap factory for the map and an AggregateSetFactory for the value collections.

Method Detail

makeMultiMap

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

Overrides:
makeMultiMap in class MultiMapFactory<K,V>

JUtil

Copyright (c) 2006 C. Scott Ananian