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

java.lang.Object
  extended by jpaul.DataStructs.MapFactory<K,V>
      extended by jpaul.DataStructs.MapFacts.HashMapFactory<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.hash() instead.

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

HashMapFactory is a map factory that generates LinkedHashMaps. LinkedHashMaps are great for applications that use a few large maps. They also offer predictable iteration order.

See Also:
Serialized Form

Constructor Summary
MapFacts.HashMapFactory()
          Deprecated.  
 
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.HashMapFactory

public MapFacts.HashMapFactory()
Deprecated. 
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