/** * Generates a hash code for this route. * * @return the hash code */ @Override public final int hashCode() { int hc = this.targetHost.hashCode(); if (this.localAddress != null) hc ^= localAddress.hashCode(); if (this.proxyChain != null) { hc ^= proxyChain.length; for (HttpHost aProxyChain : proxyChain) hc ^= aProxyChain.hashCode(); } if (this.secure) hc ^= 0x11111111; hc ^= this.tunnelled.hashCode(); hc ^= this.layered.hashCode(); return hc; }
/** * Generates a hash code for this tracked route. * Route trackers are modifiable and should therefore not be used * as lookup keys. Use {@link #toRoute toRoute} to obtain an * unmodifiable representation of the tracked route. * * @return the hash code */ @Override public final int hashCode() { int hc = this.targetHost.hashCode(); if (this.localAddress != null) hc ^= localAddress.hashCode(); if (this.proxyChain != null) { hc ^= proxyChain.length; for (int i=0; i<proxyChain.length; i++) hc ^= proxyChain[i].hashCode(); } if (this.connected) hc ^= 0x11111111; if (this.secure) hc ^= 0x22222222; hc ^= this.tunnelled.hashCode(); hc ^= this.layered.hashCode(); return hc; }
@Override public int hashCode() { return host.hashCode(); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (acceptAnyCertificate ? 1231 : 1237); result = prime * result + ((httpHost == null) ? 0 : httpHost.hashCode()); result = prime * result + ((requestInterceptor == null) ? 0 : System.identityHashCode(requestInterceptor)); result = prime * result + ((responseInterceptor == null) ? 0 : System.identityHashCode(responseInterceptor)); return result; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (acceptAnyCertificate ? 1231 : 1237); result = prime * result + ((httpHost == null) ? 0 : httpHost.hashCode()); result = prime * result + ((requestInterceptor == null) ? 0 : System.identityHashCode(requestInterceptor)); result = prime * result + ((responseInterceptor == null) ? 0 : System.identityHashCode(responseInterceptor)); return result; }
/** * Generates a hash code for this route. * * @return the hash code */ @Override public final int hashCode() { int hc = this.targetHost.hashCode(); if (this.localAddress != null) hc ^= localAddress.hashCode(); if (this.proxyChain != null) { hc ^= proxyChain.length; for (HttpHost aProxyChain : proxyChain) hc ^= aProxyChain.hashCode(); } if (this.secure) hc ^= 0x11111111; hc ^= this.tunnelled.hashCode(); hc ^= this.layered.hashCode(); return hc; }
/** * Generates a hash code for this route. * * @return the hash code */ @Override public final int hashCode() { int hc = this.targetHost.hashCode(); if (this.localAddress != null) hc ^= localAddress.hashCode(); if (this.proxyChain != null) { hc ^= proxyChain.length; for (HttpHost aProxyChain : proxyChain) hc ^= aProxyChain.hashCode(); } if (this.secure) hc ^= 0x11111111; hc ^= this.tunnelled.hashCode(); hc ^= this.layered.hashCode(); return hc; }
/** * Generates a hash code for this route. * * @return the hash code */ @Override public final int hashCode() { int hc = this.targetHost.hashCode(); if (this.localAddress != null) hc ^= localAddress.hashCode(); if (this.proxyChain != null) { hc ^= proxyChain.length; for (HttpHost aProxyChain : proxyChain) hc ^= aProxyChain.hashCode(); } if (this.secure) hc ^= 0x11111111; hc ^= this.tunnelled.hashCode(); hc ^= this.layered.hashCode(); return hc; }
/** * Generates a hash code for this route. * * @return the hash code */ @Override public final int hashCode() { int hc = this.targetHost.hashCode(); if (this.localAddress != null) hc ^= localAddress.hashCode(); if (this.proxyChain != null) { hc ^= proxyChain.length; for (HttpHost aProxyChain : proxyChain) hc ^= aProxyChain.hashCode(); } if (this.secure) hc ^= 0x11111111; hc ^= this.tunnelled.hashCode(); hc ^= this.layered.hashCode(); return hc; }
/** * Generates a hash code for this tracked route. * Route trackers are modifiable and should therefore not be used * as lookup keys. Use {@link #toRoute toRoute} to obtain an * unmodifiable representation of the tracked route. * * @return the hash code */ @Override public final int hashCode() { int hc = this.targetHost.hashCode(); if (this.localAddress != null) hc ^= localAddress.hashCode(); if (this.proxyChain != null) { hc ^= proxyChain.length; for (int i=0; i<proxyChain.length; i++) hc ^= proxyChain[i].hashCode(); } if (this.connected) hc ^= 0x11111111; if (this.secure) hc ^= 0x22222222; hc ^= this.tunnelled.hashCode(); hc ^= this.layered.hashCode(); return hc; }
/** * Generates a hash code for this tracked route. * Route trackers are modifiable and should therefore not be used * as lookup keys. Use {@link #toRoute toRoute} to obtain an * unmodifiable representation of the tracked route. * * @return the hash code */ @Override public final int hashCode() { int hc = this.targetHost.hashCode(); if (this.localAddress != null) hc ^= localAddress.hashCode(); if (this.proxyChain != null) { hc ^= proxyChain.length; for (int i=0; i<proxyChain.length; i++) hc ^= proxyChain[i].hashCode(); } if (this.connected) hc ^= 0x11111111; if (this.secure) hc ^= 0x22222222; hc ^= this.tunnelled.hashCode(); hc ^= this.layered.hashCode(); return hc; }
/** * Generates a hash code for this tracked route. * Route trackers are modifiable and should therefore not be used * as lookup keys. Use {@link #toRoute toRoute} to obtain an * unmodifiable representation of the tracked route. * * @return the hash code */ @Override public final int hashCode() { int hc = this.targetHost.hashCode(); if (this.localAddress != null) hc ^= localAddress.hashCode(); if (this.proxyChain != null) { hc ^= proxyChain.length; for (int i=0; i<proxyChain.length; i++) hc ^= proxyChain[i].hashCode(); } if (this.connected) hc ^= 0x11111111; if (this.secure) hc ^= 0x22222222; hc ^= this.tunnelled.hashCode(); hc ^= this.layered.hashCode(); return hc; }
/** * Generates a hash code for this tracked route. * Route trackers are modifiable and should therefore not be used * as lookup keys. Use {@link #toRoute toRoute} to obtain an * unmodifiable representation of the tracked route. * * @return the hash code */ @Override public final int hashCode() { int hc = this.targetHost.hashCode(); if (this.localAddress != null) hc ^= localAddress.hashCode(); if (this.proxyChain != null) { hc ^= proxyChain.length; for (int i=0; i<proxyChain.length; i++) hc ^= proxyChain[i].hashCode(); } if (this.connected) hc ^= 0x11111111; if (this.secure) hc ^= 0x22222222; hc ^= this.tunnelled.hashCode(); hc ^= this.layered.hashCode(); return hc; }