boolean (Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } HostInfo info = (HostInfo)o; return myPort == info.myPort && myHost.equals(info.myHost) && Objects.equals(myProtocol, info.myProtocol); }