|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpaul.DataStructs.MapFactory<K,V>
public abstract class MapFactory<K,V>
MapFactory is a map-specific instance of the factory
pattern. Various map factories are available in the class MapFacts.
| Constructor Summary | |
|---|---|
MapFactory()
|
|
| Method Summary | |
|---|---|
abstract java.util.Map<K,V> |
create()
Create a new object of class T. |
java.util.Map<K,V> |
create(java.util.Map<K,V> m)
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 MapFactory()
| Method Detail |
|---|
public abstract java.util.Map<K,V> create()
FactoryT. Corresponds to a
default constructor.
create in interface Factory<java.util.Map<K,V>>public java.util.Map<K,V> create(java.util.Map<K,V> m)
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>>Factory.create(Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||