net.cscott.jutil

Class 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(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()
Create a new GenericMultiMapFactory, using a HashMap factory for the map and an AggregateSetFactory for the value collections.
Method Summary
GenericMultiMap<K,V>makeMultiMap()
Create a new GenericMultiMap.

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.
Copyright (c) 2006 C. Scott Ananian