diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2005-01-16 02:14:44 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2005-01-16 02:14:44 +0000 |
commit | 2522f3363d0ccbb714b010c6ce79eb698052cca3 (patch) | |
tree | f9753bfb14e4195fe8c928b76e7d5407375bddf2 /java/net/NetworkInterface.java | |
parent | 18addaa71c45fbdb60627f349e52027b3281e879 (diff) | |
download | classpath-2522f3363d0ccbb714b010c6ce79eb698052cca3.tar.gz |
2005-01-16 Andrew John Hughes <gnu_andrew@member.fsf.org>
* Merge of November 2004 HEAD patches to generics branch
Diffstat (limited to 'java/net/NetworkInterface.java')
-rw-r--r-- | java/net/NetworkInterface.java | 50 |
1 files changed, 30 insertions, 20 deletions
diff --git a/java/net/NetworkInterface.java b/java/net/NetworkInterface.java index f2c8acdaf..dea4e3b44 100644 --- a/java/net/NetworkInterface.java +++ b/java/net/NetworkInterface.java @@ -1,5 +1,5 @@ /* NetworkInterface.java -- - Copyright (C) 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -85,14 +85,14 @@ public final class NetworkInterface } /** - * Returns all available addresses of the network interface + * Returns all available addresses of the network interface * - * If a @see SecurityManager is available all addresses are checked - * with @see SecurityManager::checkConnect() if they are available. - * Only <code>InetAddresses</code> are returned where the security manager - * doesn't throw an exception. + * If a @see SecurityManager is available all addresses are checked + * with @see SecurityManager::checkConnect() if they are available. + * Only <code>InetAddresses</code> are returned where the security manager + * doesn't throw an exception. * - * @return An enumeration of all addresses. + * @return An enumeration of all addresses. */ public Enumeration getInetAddresses() { @@ -122,9 +122,9 @@ public final class NetworkInterface } /** - * Returns the display name of the interface + * Returns the display name of the interface * - * @return The display name of the interface + * @return The display name of the interface */ public String getDisplayName() { @@ -160,12 +160,14 @@ public final class NetworkInterface } /** - * Return a network interface by its address + * Return a network interface by its address * - * @param addr The address of the interface to return + * @param addr The address of the interface to return * - * @exception SocketException If an error occurs - * @exception NullPointerException If the specified addess is null + * @return the interface, or <code>null</code> if none found + * + * @exception SocketException If an error occurs + * @exception NullPointerException If the specified addess is null */ public static NetworkInterface getByInetAddress(InetAddress addr) throws SocketException @@ -189,9 +191,11 @@ public final class NetworkInterface } /** - * Return an <code>Enumeration</code> of all available network interfaces + * Return an <code>Enumeration</code> of all available network interfaces * - * @exception SocketException If an error occurs + * @return all interfaces + * + * @exception SocketException If an error occurs */ public static Enumeration getNetworkInterfaces() throws SocketException { @@ -204,9 +208,11 @@ public final class NetworkInterface } /** - * Checks if the current instance is equal to obj + * Checks if the current instance is equal to obj * - * @param obj The object to compare with + * @param obj The object to compare with + * + * @return <code>true</code> if equal, <code>false<code> otherwise */ public boolean equals(Object obj) { @@ -219,7 +225,9 @@ public final class NetworkInterface } /** - * Returns the hashcode of the current instance + * Returns the hashcode of the current instance + * + * @return the hashcode */ public int hashCode() { @@ -228,7 +236,9 @@ public final class NetworkInterface } /** - * Returns a string representation of the interface + * Returns a string representation of the interface + * + * @return the string */ public String toString() { @@ -248,4 +258,4 @@ public final class NetworkInterface return result; } -} // class NetworkInterface +} |