@Test public void testHashCode() { URI uri1 = URI.defaultURI(); URI uri2 = URI.address("http: assertEquals(uri1.hashCode(), uri2.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.scheme) .append(this.host) .append(this.port) .toHashCode(); }
URI { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.scheme) .append(this.host) .append(this.port) .toHashCode(); } }
URI { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.scheme) .append(this.host) .append(this.port) .toHashCode(); } private  URI(); }
URI { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.scheme) .append(this.host) .append(this.port) .toHashCode(); } private  URI(); @SuppressWarnings("WeakerAccess") static URI defaultURI(); @SuppressWarnings("WeakerAccess") static URI fromHostPort(String host, int port); static URI address(String address); @SuppressWarnings("WeakerAccess") String getScheme(); @SuppressWarnings("WeakerAccess") String getHost(); @SuppressWarnings("WeakerAccess") int getPort(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); }
URI { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.scheme) .append(this.host) .append(this.port) .toHashCode(); } private  URI(); @SuppressWarnings("WeakerAccess") static URI defaultURI(); @SuppressWarnings("WeakerAccess") static URI fromHostPort(String host, int port); static URI address(String address); @SuppressWarnings("WeakerAccess") String getScheme(); @SuppressWarnings("WeakerAccess") String getHost(); @SuppressWarnings("WeakerAccess") int getPort(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }