|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SortedMapFactory
This is the interface for a MapFactory that creates
instances of SortedMap.
TreeMapFactory.INSTANCE| Method Summary | ||
|---|---|---|
|
create()
This method creates a new Map instance. |
|
|
create(int capacity)
This method creates a new Map instance with the given
capacity. |
|
| Methods inherited from interface net.sf.mmm.util.collection.api.MapFactory |
|---|
createGeneric, createGeneric, getMapImplementation, getMapInterface |
| Method Detail |
|---|
<K,V> SortedMap<K,V> create()
Map instance.Map can NOT be bound to the generic
type <MAP> because of limitations in Java's generic type
system. You need to work on the actual sub-interface (e.g.
SortedMapFactory) to get a more specific result type.
create in interface MapFactory<SortedMap>K - the type of keys maintained by the map.V - the type of mapped values.
<K,V> SortedMap<K,V> create(int capacity)
Map instance with the given
capacity. For a regular map this will be the initial capacity
while a cache may never grow beyond this capacity limit and if reached
force out entries last recently of frequently used.
create in interface MapFactory<SortedMap>K - the type of keys maintained by the map.V - the type of mapped values.capacity - is the capacity of the map to create.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||