All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.collections.Maps Maven / Gradle / Ivy

There is a newer version: 7.10.2
Show newest version
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