isUnresolved

toString

Suppressed: Constructs a string representation of this InetSocketAddress.
This String is constructed by calling toString() on the InetAddress
and concatenating the port number (with a colon). If the address
is unresolved then the part before the colon will only contain the hostname.

equals

Suppressed: Compares this object against the specified object.
The result is true if and only if the argument is
not null and it represents the same address as
this object.

Two instances of InetSocketAddress represent the same
address if both the InetAddresses (or hostnames if it is unresolved) and port
numbers are equal.
If both addresses are unresolved, then the hostname & the port number
are compared.