URL.equals

URL.equals

Class Overview | Class Members | This Package | All Packages

Syntax
public boolean equals( Object obj )
Parameters
obj
the URL to compare against.
Returns
true if the objects are the same; false otherwise.
Description
Compares two URLs. The result is true if and only if the argument is not null and is a URL object that represents the same URL as this object. Two URL objects are equal if they have the same protocol and reference the same host, the same port number on the host, and the same file on the host. The anchors of the URL objects are not compared.

This method is equivalent to:

Overrides
equals in class Object