List of utility methods to do HashMap Create
java.util.HashMap | getHashMap() Return a basic HashMap return new HashMap<T, S>(0); |
HashMap | getHashMap() get Hash Map Runtime runtime = Runtime.getRuntime(); HashMap<String, Long> params = new HashMap<String, Long>(); params.put("Used", runtime.totalMemory() - runtime.freeMemory()); params.put("Free", runtime.freeMemory()); params.put("Total", runtime.totalMemory()); params.put("Max", runtime.maxMemory()); return params; |
HashMap | getHashMap() get Hash Map return new HashMap<String, String>(); |
HashMap | getHashMap(Object... args) get Hash Map assert (args.length % 2 == 0); HashMap<K, V> map = new HashMap<>(); for (int i = 0; i < args.length; i += 2) { map.put((K) args[i], (V) args[i + 1]); return map; |
HashMap | getHashMapFromArrayList(ArrayList get Hash Map From Array List HashMap<String, String> map = new HashMap<String, String>(); for (String line : lines) { String key = line.split(",")[keyIndex]; map.put(key, line); return map; |
Map | getHashMapFromMap(Map get Hash Map From Map Map<A, B> value = map.get(key); if (value == null) { value = new HashMap<>(); map.put(key, (V) value); return value; |
HashMap | hashMap() hash Map return new HashMap<K, V>(); |
Map | hashMap() Creates a HashMap instance. return new HashMap<K, V>(); |
HashMap | hashmap() hashmap return new HashMap<K, V>(); |
Map | hashMap(Entry hash Map return hashMap(Arrays.asList(entries));
|