InetAddress.equals

InetAddress.equals

Class Overview | Class Members | This Package | All Packages

Syntax
public boolean equals( Object obj )
Parameters
obj
the object to compare against.
Returns
true if the objects are the same; false otherwise.
Description
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.

Overrides
equals in class Object
See Also
getAddress