| Modifier and Type | Class and Description |
|---|---|
class |
AggregateMapFactory<K,V>
AggregateMapFactory uses a single HashMap
as backing store for the many smaller Maps created
by this MapFactory. |
class |
GenericMultiMapFactory<K,V>
|
class |
MultiMapFactory<K,V>
MultiMapFactory is a MultiMap generator. |
class |
PersistentMapFactory<K,V>
A
PersistentMapFactory uses hash-consing to ensure that
the Maps created by it maximally reuse space. |
class |
PersistentMultiMapFactory<K,V>
A
PersistentMultiMapFactory uses hash-consing to ensure that
the MultiMaps created by it maximally reuse space. |
| Modifier and Type | Field and Description |
|---|---|
static MapFactory |
Factories.hashMapFactory
A
MapFactory that generates HashMaps. |
static MapFactory |
Factories.linkedHashMapFactory
A
MapFactory that generates LinkedHashMaps. |
| Modifier and Type | Method and Description |
|---|---|
static <K extends java.lang.Enum<K>,V> |
Factories.enumMapFactory(java.lang.Class<K> enumClass)
A
MapFactory that generates EnumMaps. |
static <K,V> MapFactory<K,V> |
Factories.hashMapFactory() |
static <K,V> MapFactory<K,V> |
Factories.linkedHashMapFactory() |
static <K,V> MapFactory<K,V> |
Factories.synchronizedMapFactory(MapFactory<K,V> mf)
Returns a
MapFactory that generates synchronized
(thread-safe) Maps. |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> SetFactory<java.util.Map.Entry<K,V>> |
Factories.mapSetFactory(MapFactory<K,V> mf)
|
static <K,V> MapFactory<K,V> |
Factories.synchronizedMapFactory(MapFactory<K,V> mf)
Returns a
MapFactory that generates synchronized
(thread-safe) Maps. |
| Constructor and Description |
|---|
GenericInvertibleMap(MapFactory<K,V> mf,
MultiMapFactory<V,K> mmf)
Constructs an invertible map backed by a map constructed by
mf and an inverted map constructed by
mmf. |
GenericInvertibleMultiMap(MapFactory mf,
CollectionFactory cf) |
GenericMultiMap(MapFactory<K,java.util.Collection<V>> mf,
CollectionFactory<V> cf)
Creates a
MultiMap using the specified
MapFactory to create the map and the specified
CollectionFactory to create the value collections. |
GenericMultiMapFactory(MapFactory<K,java.util.Collection<V>> mf,
CollectionFactory<V> cf)
Create a new
GenericMultiMapFactory, specifying
the MapFactory and CollectionFactory
to be used by the underlying GenericMultiMap. |
Copyright (c) 2006 C. Scott Ananian