diff options
Diffstat (limited to 'libjava/java/net/URL.java')
-rw-r--r-- | libjava/java/net/URL.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libjava/java/net/URL.java b/libjava/java/net/URL.java index b485c51..00dad2c 100644 --- a/libjava/java/net/URL.java +++ b/libjava/java/net/URL.java @@ -254,6 +254,9 @@ public final class URL implements Serializable hashCode = hashCode(); // Used for serialization. } + /** + * Checks if two URLs are equal + */ public boolean equals(Object obj) { if (obj == null || ! (obj instanceof URL)) @@ -287,6 +290,9 @@ public final class URL implements Serializable return getContent(); } + /** + * Returns the file of the URL + */ public String getFile() { return file; @@ -367,6 +373,9 @@ public final class URL implements Serializable return query; } + /** + * Returns a hashcode computed by the URLStreamHandler of this URL + */ public int hashCode() { // JCL book says this is computed using (only) the hashcodes of the |