|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpaul.DataStructs.MapFactory<K,V>
jpaul.DataStructs.MapFacts.TreeMapFactory<K,V>
MapFacts.tree(Comparator) instead.
public static class MapFacts.TreeMapFactory<K,V>
TreeMapFactory is a map factory that generates
TreeMaps. TreeMap are great for
applications that use many small maps.
| 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 |
|---|
public MapFacts.TreeMapFactory(java.util.Comparator<K> comp)
TreeMapFactory.
comp - Comparator used internally by the generated
TreeMaps.| Method Detail |
|---|
public java.util.Map<K,V> create()
FactoryT. 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)
MapFactorycreate() 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 | ||||||||