com.axibase.tsd.driver.jdbc.util.CaseInsensitiveLinkedHashMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atsd-jdbc Show documentation
Show all versions of atsd-jdbc Show documentation
JDBC driver for SQL API using
package com.axibase.tsd.driver.jdbc.util;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.Set;
public class CaseInsensitiveLinkedHashMap extends LinkedHashMap {
private final Set keys = new HashSet<>();
public V put(String key, V value) {
if (notContainsIgnoreCase(key)) {
return super.put(key, value);
}
return null;
}
private boolean notContainsIgnoreCase(String key) {
return key == null ? false : keys.add(key.toLowerCase());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy