@Test public void testContainsNameAndValue() { Http2Headers headers = newHeaders(); assertTrue(headers.contains("name1", "value2")); assertFalse(headers.contains("name1", "Value2")); assertTrue(headers.contains("2name", "Value3", true)); assertFalse(headers.contains("2name", "Value3", false)); }
@Override public boolean contains(CharSequence name, CharSequence value) { return contains(name, value, false); }
DefaultHttp2Headers extends DefaultHeaders<CharSequence, CharSequence, Http2Headers> implements Http2Headers { @Override public boolean contains(CharSequence name, CharSequence value) { return contains(name, value, false); } }
DefaultHttp2Headers extends DefaultHeaders<CharSequence, CharSequence, Http2Headers> implements Http2Headers { @Override public boolean contains(CharSequence name, CharSequence value) { return contains(name, value, false); } DefaultHttp2Headers(); @SuppressWarnings("unchecked")  DefaultHttp2Headers(boolean validate); @SuppressWarnings("unchecked")  DefaultHttp2Headers(boolean validate, int arraySizeHint); }
DefaultHttp2Headers extends DefaultHeaders<CharSequence, CharSequence, Http2Headers> implements Http2Headers { @Override public boolean contains(CharSequence name, CharSequence value) { return contains(name, value, false); } DefaultHttp2Headers(); @SuppressWarnings("unchecked")  DefaultHttp2Headers(boolean validate); @SuppressWarnings("unchecked")  DefaultHttp2Headers(boolean validate, int arraySizeHint); @Override Http2Headers clear(); @Override boolean equals(Object o); @Override int hashCode(); @Override Http2Headers method(CharSequence value); @Override Http2Headers scheme(CharSequence value); @Override Http2Headers authority(CharSequence value); @Override Http2Headers path(CharSequence value); @Override Http2Headers status(CharSequence value); @Override CharSequence method(); @Override CharSequence scheme(); @Override CharSequence authority(); @Override CharSequence path(); @Override CharSequence status(); @Override boolean contains(CharSequence name, CharSequence value); @Override boolean contains(CharSequence name, CharSequence value, boolean caseInsensitive); }
DefaultHttp2Headers extends DefaultHeaders<CharSequence, CharSequence, Http2Headers> implements Http2Headers { @Override public boolean contains(CharSequence name, CharSequence value) { return contains(name, value, false); } DefaultHttp2Headers(); @SuppressWarnings("unchecked")  DefaultHttp2Headers(boolean validate); @SuppressWarnings("unchecked")  DefaultHttp2Headers(boolean validate, int arraySizeHint); @Override Http2Headers clear(); @Override boolean equals(Object o); @Override int hashCode(); @Override Http2Headers method(CharSequence value); @Override Http2Headers scheme(CharSequence value); @Override Http2Headers authority(CharSequence value); @Override Http2Headers path(CharSequence value); @Override Http2Headers status(CharSequence value); @Override CharSequence method(); @Override CharSequence scheme(); @Override CharSequence authority(); @Override CharSequence path(); @Override CharSequence status(); @Override boolean contains(CharSequence name, CharSequence value); @Override boolean contains(CharSequence name, CharSequence value, boolean caseInsensitive);  }