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
Testing framework for Java
package org.testng.collections;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.Map;
public class Maps {
public static Map newHashMap() {
return new HashMap<>();
}
public static Map newHashtable() {
return new Hashtable<>();
}
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);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy