public CaseInsensitiveMap(Map<? extends String, ? extends V> m) { this(m.size()); putAll(m); }
public CaseInsensitiveMap(Properties prop) { this(prop.size()); putAll(prop); }
public void setStorageEngineParams(Map<String, String> storageEngineParams) { if (storageEngineParams instanceof CaseInsensitiveMap) { data.storageEngineParams = (CaseInsensitiveMap<String>) storageEngineParams; } else { data.storageEngineParams = new CaseInsensitiveMap<>(); data.storageEngineParams.putAll(storageEngineParams); } }
public void setStorageEngineParams(Map<String, String> storageEngineParams) { if (storageEngineParams instanceof CaseInsensitiveMap) { data.storageEngineParams = (CaseInsensitiveMap<String>) storageEngineParams; } else { data.storageEngineParams = new CaseInsensitiveMap<>(); data.storageEngineParams.putAll(storageEngineParams); } }
@SuppressWarnings("unchecked") private <M extends StorageMap<K, V>, K, V> M openMap(String name, StorageMapBuilder<M, K, V> builder, Map<String, String> parameters) { M map = (M) maps.get(name); if (map == null) { synchronized (this) { map = (M) maps.get(name); if (map == null) { CaseInsensitiveMap<Object> c = new CaseInsensitiveMap<>(config); if (parameters != null) c.putAll(parameters); builder.name(name).config(c).aoStorage(this); map = builder.openMap(); maps.put(name, map); } } } return map; }