Merge pull request #748 from xuwei-k/override-hashCode

override HostAndPort#hashCode
This commit is contained in:
Jungtaek Lim
2014-09-29 08:22:27 +09:00

View File

@@ -33,6 +33,11 @@ public class HostAndPort {
return false;
}
@Override
public int hashCode() {
return 31 * convertHost(host).hashCode() + port;
}
@Override
public String toString() {
return host + ":" + port;