@Test public void testContainsKey() { CaseInsensitiveTreeMap<Integer> m = new CaseInsensitiveTreeMap<>(); assertFalse(m.containsKey("xyz")); m.put("xyz", 1); assertTrue(m.containsKey("xyz")); assertTrue(m.containsKey("xyZ")); assertTrue(m.containsKey("XYZ")); m.put("XYZ", 5); m.checkStructure(); assertTrue(m.containsKey("xyz")); assertTrue(m.containsKey("xyZ")); assertTrue(m.containsKey("XYZ")); }
public boolean containsKey(Object obj) { return obj instanceof String && caseConverter.containsKey(((String)obj).toLowerCase()); }
CaseInsensitiveTreeMap extends AbstractMap<String,V> { public boolean containsKey(Object obj) { return obj instanceof String && caseConverter.containsKey(((String)obj).toLowerCase()); } }
CaseInsensitiveTreeMap extends AbstractMap<String,V> { public boolean containsKey(Object obj) { return obj instanceof String && caseConverter.containsKey(((String)obj).toLowerCase()); } CaseInsensitiveTreeMap(); }
CaseInsensitiveTreeMap extends AbstractMap<String,V> { public boolean containsKey(Object obj) { return obj instanceof String && caseConverter.containsKey(((String)obj).toLowerCase()); } CaseInsensitiveTreeMap(); boolean containsKey(Object obj); V get(Object obj); V put(String key, V val); V remove(Object obj); Set<Map.Entry<String,V>> entrySet(); }
CaseInsensitiveTreeMap extends AbstractMap<String,V> { public boolean containsKey(Object obj) { return obj instanceof String && caseConverter.containsKey(((String)obj).toLowerCase()); } CaseInsensitiveTreeMap(); boolean containsKey(Object obj); V get(Object obj); V put(String key, V val); V remove(Object obj); Set<Map.Entry<String,V>> entrySet();  }