@Override public void putAll(Map<? extends String, ? extends String> map) { if (map != null) { super.putAll(map); } } }
protected void setupEnvironment(@NotNull Map<String, String> environment) { environment.clear(); environment.putAll(getParentEnvironment()); if (!myEnvParams.isEmpty()) { if (SystemInfo.isWindows) { THashMap<String, String> envVars = new THashMap<String, String>(CaseInsensitiveStringHashingStrategy.INSTANCE); envVars.putAll(environment); envVars.putAll(myEnvParams); environment.clear(); environment.putAll(envVars); } else { environment.putAll(myEnvParams); } } }
/** * Creates a new <code>THashMap</code> instance which contains the * key/value pairs in <tt>map</tt>. * * @param map a <code>Map</code> value */ public THashMap(Map map) { this(map.size()); putAll(map); }
/** * Constructor * * @param map */ public THashMap(Map<K, V> map) { this(map.size()); putAll(map); }
/** * Creates a new <code>THashMap</code> instance which contains the * key/value pairs in <tt>map</tt>. * * @param map a <code>Map</code> value * @param strategy used to compute hash codes and to compare objects. */ public THashMap(Map map, TObjectHashingStrategy strategy) { this(map.size(), strategy); putAll(map); }
/** * Constructor * * @param map */ public THashMap(Map<K, V> map) { this(map.size()); putAll(map); }