Class MapFactory<S extends java.util.Map<K,V>,K,V>
- java.lang.Object
-
- cc.carm.lib.configuration.core.util.MapFactory<S,K,V>
-
public class MapFactory<S extends java.util.Map<K,V>,K,V> extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MapFactory(S map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description S
build()
MapFactory<S,K,V>
clear()
S
get()
static <K,V>
MapFactory<java.util.HashMap<K,V>,K,V>hashMap()
static <K,V>
MapFactory<java.util.HashMap<K,V>,K,V>hashMap(K firstKey, V firstValue)
static <K,V>
MapFactory<java.util.LinkedHashMap<K,V>,K,V>linkedMap()
static <K,V>
MapFactory<java.util.LinkedHashMap<K,V>,K,V>linkedMap(K firstKey, V firstValue)
static <M extends java.util.Map<K,V>,K,V>
MapFactory<M,K,V>of(M map)
MapFactory<S,K,V>
put(K key, V value)
MapFactory<S,K,V>
remove(K key)
static <K extends java.lang.Comparable<K>,V>
MapFactory<java.util.TreeMap<K,V>,K,V>treeMap()
static <K extends java.lang.Comparable<K>,V>
MapFactory<java.util.TreeMap<K,V>,K,V>treeMap(K firstKey, V firstValue)
-
-
-
Constructor Detail
-
MapFactory
protected MapFactory(S map)
-
-
Method Detail
-
remove
public MapFactory<S,K,V> remove(K key)
-
clear
public MapFactory<S,K,V> clear()
-
build
public S build()
-
get
public S get()
-
hashMap
public static <K,V> MapFactory<java.util.HashMap<K,V>,K,V> hashMap()
-
hashMap
public static <K,V> MapFactory<java.util.HashMap<K,V>,K,V> hashMap(K firstKey, V firstValue)
-
linkedMap
public static <K,V> MapFactory<java.util.LinkedHashMap<K,V>,K,V> linkedMap()
-
linkedMap
public static <K,V> MapFactory<java.util.LinkedHashMap<K,V>,K,V> linkedMap(K firstKey, V firstValue)
-
treeMap
public static <K extends java.lang.Comparable<K>,V> MapFactory<java.util.TreeMap<K,V>,K,V> treeMap()
-
treeMap
public static <K extends java.lang.Comparable<K>,V> MapFactory<java.util.TreeMap<K,V>,K,V> treeMap(K firstKey, V firstValue)
-
of
public static <M extends java.util.Map<K,V>,K,V> MapFactory<M,K,V> of(M map)
-
-