Class MapFactory<S extends java.util.Map<K,​V>,​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)  
    • Constructor Detail

      • MapFactory

        protected MapFactory​(S map)
    • Method Detail

      • 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)