Merge pull request #748 from xuwei-k/override-hashCode
override HostAndPort#hashCode
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user