public class NamedMapFactory
extends java.lang.Object
NamedMap
objects.Constructor and Description |
---|
NamedMapFactory() |
Modifier and Type | Method and Description |
---|---|
static <K,V> NamedMap<K,V> |
getMap(java.lang.String name)
Returns a
NamedMap instance for the given name. |
static <K,V> NamedMap<K,V> |
getMap(java.lang.String name,
CustomSerializer<K> keySerializer,
CustomSerializer<V> valueSerializer)
Returns a
NamedMap instance for the given name, and assigns the specified custom key and value serializers to it. |
public static <K,V> NamedMap<K,V> getMap(java.lang.String name)
NamedMap
instance for the given name.K
- key typeV
- value typename
- map namepublic static <K,V> NamedMap<K,V> getMap(java.lang.String name, CustomSerializer<K> keySerializer, CustomSerializer<V> valueSerializer)
NamedMap
instance for the given name, and assigns the specified custom key and value serializers to it.K
- key typeV
- value typename
- map namekeySerializer
- custom serializer for the keysvalueSerializer
- custom serializer for the values