org.testng.collections.Maps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
A testing framework for the JVM
package org.testng.collections;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class Maps {
public static Map newHashMap() {
return new HashMap<>();
}
public static Map newHashtable() {
return new Hashtable<>();
}
public static Map newConcurrentMap() {
return new ConcurrentHashMap<>();
}
public static ListMultiMap newListMultiMap() {
return new ListMultiMap<>(false);
}
public static ListMultiMap newSortedListMultiMap() {
return new ListMultiMap<>(true);
}
public static SetMultiMap newSetMultiMap() {
return new SetMultiMap<>(false);
}
public static Map newLinkedHashMap() {
return new LinkedHashMap<>();
}
public static Map newHashMap(Map parameters) {
return new HashMap<>(parameters);
}
}