jpaul.DataStructs
Class MapFacts.TreeMapFactory<K,V>

java.lang.Object
  extended by jpaul.DataStructs.MapFactory<K,V>
      extended by jpaul.DataStructs.MapFacts.TreeMapFactory<K,V>
All Implemented Interfaces:
java.io.Serializable, Factory<java.util.Map<K,V>>
Enclosing class:
MapFacts

Deprecated. As of jpaul 2.2, use MapFacts.tree(Comparator) instead.

public static class MapFacts.TreeMapFactory<K,V>
extends MapFactory<K,V>

TreeMapFactory is a map factory that generates TreeMaps. TreeMap are great for applications that use many small maps.

See Also:
Serialized Form

Constructor Summary
MapFacts.TreeMapFactory(java.util.Comparator<K> comp)
          Deprecated. Creates a TreeMapFactory.
 
Method Summary
 java.util.Map<K,V> create()
          Deprecated. Create a new object of class T.
 java.util.Map<K,V> create(java.util.Map<K,V> m)
          Deprecated. Default implementation: uses create() to create an empty map, and next adds each entry from m to the newly-created map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapFacts.TreeMapFactory

public MapFacts.TreeMapFactory(java.util.Comparator<K> comp)
Deprecated. 
Creates a TreeMapFactory.

Parameters:
comp - Comparator used internally by the generated TreeMaps.
Method Detail

create

public java.util.Map<K,V> create()
Deprecated. 
Description copied from interface: Factory
Create a new object of class T. Corresponds to a default constructor.

Specified by:
create in interface Factory<java.util.Map<K,V>>
Specified by:
create in class MapFactory<K,V>

create

public java.util.Map<K,V> create(java.util.Map<K,V> m)
Deprecated. 
Description copied from class: MapFactory
Default implementation: uses create() to create an empty map, and next adds each entry from m to the newly-created map.

Specified by:
create in interface Factory<java.util.Map<K,V>>
Overrides:
create in class MapFactory<K,V>
See Also:
Factory.create(Object)


Copyright 2005 Alexandru Salcianu - salcianu@alum.mit.edu