Code example for InetSocketAddress

Methods: hashCode

0
    @Override 
    public int hashCode() { 
        final int prime = 31;
        int result = 1;
        result = prime * result + (this.opaque == null ? 0 : this.opaque.hashCode());
        result = prime * result + (this.responseHost == null ? 0 : this.responseHost.hashCode());
        result = prime * result + (this.responseStatus == null ? 0 : this.responseStatus.hashCode());
        result = prime * result + (int) (this.responseTime ^ this.responseTime >>> 32);
        return result;
    } 
 
 
    @Override 
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true; 
        } 
        if (obj == null) {
            return false; 
        } 
Stop searching for code, let great code find you!  Add Codota to your java IDE