@Test public void caseInsensitiveContainsShouldReturnFalseForNonExistentKey() { assertThat(HeaderAccessUtils.caseInsensitiveContains(TEST_HEADERS_MAP, "invalid")) .isFalse(); }
public static boolean caseInsensitiveContains(Map<String, Collection<String>> headers, String headerName) { for (String key : headers.keySet()) { if (headerName.equalsIgnoreCase(key)) { return true; } } return false; }
HeaderAccessUtils { public static boolean caseInsensitiveContains(Map<String, Collection<String>> headers, String headerName) { for (String key : headers.keySet()) { if (headerName.equalsIgnoreCase(key)) { return true; } } return false; } }
HeaderAccessUtils { public static boolean caseInsensitiveContains(Map<String, Collection<String>> headers, String headerName) { for (String key : headers.keySet()) { if (headerName.equalsIgnoreCase(key)) { return true; } } return false; } private  HeaderAccessUtils(); }
HeaderAccessUtils { public static boolean caseInsensitiveContains(Map<String, Collection<String>> headers, String headerName) { for (String key : headers.keySet()) { if (headerName.equalsIgnoreCase(key)) { return true; } } return false; } private  HeaderAccessUtils(); static boolean caseInsensitiveContains(Map<String, Collection<String>> headers, String headerName); static Collection<String> caseInsensitiveGet(Map<String, Collection<String>> headers, String headerName); }
HeaderAccessUtils { public static boolean caseInsensitiveContains(Map<String, Collection<String>> headers, String headerName) { for (String key : headers.keySet()) { if (headerName.equalsIgnoreCase(key)) { return true; } } return false; } private  HeaderAccessUtils(); static boolean caseInsensitiveContains(Map<String, Collection<String>> headers, String headerName); static Collection<String> caseInsensitiveGet(Map<String, Collection<String>> headers, String headerName);  }