@Test void testCaseInsensitiveHashcode_KnownField() { HttpField fieldFoo1 = new HttpField("Cookie", "foo"); HttpField fieldFoo2 = new HttpField("cookie", "foo"); assertEquals(fieldFoo2.hashCode(), fieldFoo1.hashCode()); }
@Override public int hashCode() { int vhc = Objects.hashCode(value); if (header == null) return vhc ^ nameHashCode(); return vhc ^ header.hashCode(); }
HttpField { @Override public int hashCode() { int vhc = Objects.hashCode(value); if (header == null) return vhc ^ nameHashCode(); return vhc ^ header.hashCode(); } }
HttpField { @Override public int hashCode() { int vhc = Objects.hashCode(value); if (header == null) return vhc ^ nameHashCode(); return vhc ^ header.hashCode(); } HttpField(HttpHeader header, String name, String value);  HttpField(HttpHeader header, String value);  HttpField(HttpHeader header, HttpHeaderValue value);  HttpField(String name, String value); }
HttpField { @Override public int hashCode() { int vhc = Objects.hashCode(value); if (header == null) return vhc ^ nameHashCode(); return vhc ^ header.hashCode(); } HttpField(HttpHeader header, String name, String value);  HttpField(HttpHeader header, String value);  HttpField(HttpHeader header, HttpHeaderValue value);  HttpField(String name, String value); HttpHeader getHeader(); String getName(); String getLowerCaseName(); String getValue(); int getIntValue(); long getLongValue(); String[] getValues(); boolean contains(String search); @Override String toString(); boolean isSameName(HttpField field); @Override int hashCode(); @Override boolean equals(Object o); }
HttpField { @Override public int hashCode() { int vhc = Objects.hashCode(value); if (header == null) return vhc ^ nameHashCode(); return vhc ^ header.hashCode(); } HttpField(HttpHeader header, String name, String value);  HttpField(HttpHeader header, String value);  HttpField(HttpHeader header, HttpHeaderValue value);  HttpField(String name, String value); HttpHeader getHeader(); String getName(); String getLowerCaseName(); String getValue(); int getIntValue(); long getLongValue(); String[] getValues(); boolean contains(String search); @Override String toString(); boolean isSameName(HttpField field); @Override int hashCode(); @Override boolean equals(Object o);  }