org.analogweb.util.Maps Maven / Gradle / Ivy
The newest version!
package org.analogweb.util;
import java.util.HashMap;
import java.util.TreeMap;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author snowgoose
*/
public final class Maps {
public static HashMap newEmptyHashMap() {
return new HashMap();
}
public static HashMap newHashMap(K key, V value) {
HashMap map = new HashMap();
map.put(key, value);
return map;
}
public static TreeMap newTreeMap() {
return new TreeMap();
}
public static ConcurrentHashMap newConcurrentHashMap() {
ConcurrentHashMap map = new ConcurrentHashMap();
return map;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy