equals

open operator override fun equals(obj: Any?): Boolean

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 IP address as this object.

Two instances of InetAddress represent the same IP address if the length of the byte arrays returned by getAddress is the same for both, and each of the array components is the same for the byte arrays.

Return

true if the objects are the same; false otherwise.

Parameters

obj

the object to compare against.

See also

java.net.InetAddress.getAddress