|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpaul.DataStructs.MapFactory<K,V> jpaul.DataStructs.MapFacts.HashMapFactory<K,V>
MapFacts.hash()
instead.
public static class MapFacts.HashMapFactory<K,V>
HashMapFactory
is a map factory that generates
LinkedHashMap
s. LinkedHashMap
s are
great for applications that use a few large maps. They also
offer predictable iteration order.
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 |
---|
public MapFacts.HashMapFactory()
Method Detail |
---|
public java.util.Map<K,V> create()
Factory
T
. Corresponds to a
default constructor.
create
in interface Factory<java.util.Map<K,V>>
create
in class MapFactory<K,V>
public java.util.Map<K,V> create(java.util.Map<K,V> m)
MapFactory
create()
to create
an empty map, and next adds each entry from m
to
the newly-created map.
create
in interface Factory<java.util.Map<K,V>>
create
in class MapFactory<K,V>
Factory.create(Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |