@Test public void testEqualsAndHashCode() { BasicAuthFilter authFilter2 = new BasicAuthFilter("admin", "lamepass"); assertEquals(authFilter, authFilter2); assertEquals(authFilter.hashCode(), authFilter2.hashCode()); }
@Override public int hashCode() { return authentication != null ? authentication.hashCode() : 0; }
BasicAuthFilter extends ClientFilter { @Override public int hashCode() { return authentication != null ? authentication.hashCode() : 0; } }
BasicAuthFilter extends ClientFilter { @Override public int hashCode() { return authentication != null ? authentication.hashCode() : 0; } BasicAuthFilter(final String username, final String password); }
BasicAuthFilter extends ClientFilter { @Override public int hashCode() { return authentication != null ? authentication.hashCode() : 0; } BasicAuthFilter(final String username, final String password); @Override ClientResponse handle(final ClientRequest cr); @Override boolean equals(Object o); @Override int hashCode(); }
BasicAuthFilter extends ClientFilter { @Override public int hashCode() { return authentication != null ? authentication.hashCode() : 0; } BasicAuthFilter(final String username, final String password); @Override ClientResponse handle(final ClientRequest cr); @Override boolean equals(Object o); @Override int hashCode();  }