]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2003-11-26 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Wed, 26 Nov 2003 10:41:02 +0000 (10:41 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 26 Nov 2003 10:41:02 +0000 (10:41 +0000)
* java/net/InetSocketAddress.java
(hostname): Made private, added documentation.
(addr): Likewise.
(port): Likewise.
(equals): Completed documentation.
(getAddress): Likewise.
(getHostName): Likewise.
(getPort): Likewise.
(hashCode): Likewise.
(isUnresolved): Likewise.
(toString): Likewise.

From-SVN: r73946

libjava/ChangeLog
libjava/java/net/InetSocketAddress.java

index 55e465c43603553dd8e431ae66eb9b33f97208dd..e01eb30e97c0270ac0675b6ff307815440f8c91b 100644 (file)
@@ -1,3 +1,17 @@
+2003-11-26  Michael Koch  <konqueror@gmx.de>
+
+       * java/net/InetSocketAddress.java
+       (hostname): Made private, added documentation.
+       (addr): Likewise.
+       (port): Likewise.
+       (equals): Completed documentation.
+       (getAddress): Likewise.
+       (getHostName): Likewise.
+       (getPort): Likewise.
+       (hashCode): Likewise.
+       (isUnresolved): Likewise.
+       (toString): Likewise.
+
 2003-11-26  Michael Koch  <konqueror@gmx.de>
 
        * gnu/java/net/protocol/file/Handler.java
index 3f6eb09456bf0155a9602407c7e51770a701342b..f0a27e3c3bebf87137d2d0ad4e7930982744d33f 100644 (file)
@@ -52,9 +52,20 @@ public class InetSocketAddress extends SocketAddress
    */
   private static final long serialVersionUID = 5076001401234631237L;
   
-  String hostname;
-  InetAddress addr;
-  int port;
+  /**
+   * Name of host.
+   */
+  private String hostname;
+
+  /**
+   * Address of host.
+   */
+  private InetAddress addr;
+
+  /**
+   * Port of host.
+   */
+  private int port;
     
   /**
    * Constructs an InetSocketAddress instance.
@@ -124,6 +135,10 @@ public class InetSocketAddress extends SocketAddress
   /** 
    * Test if obj is a <code>InetSocketAddress</code> and
    * has the same address and port
+   *
+   * @param obj The obj to compare this address with.
+   *
+   * @return True if obj is equal.   
    */
   public final boolean equals (Object obj)
   {
@@ -148,6 +163,8 @@ public class InetSocketAddress extends SocketAddress
   /**
    * Returns the <code>InetAddress</code> or
    * <code>null</code> if its unresolved
+   *
+   * @return The IP address of this address.
    */
   public final InetAddress getAddress()
   {
@@ -156,6 +173,8 @@ public class InetSocketAddress extends SocketAddress
 
   /**
    * Returns <code>hostname</code>
+   *
+   * @return The hostname of this address.
    */
   public final String getHostName()
   {
@@ -164,6 +183,8 @@ public class InetSocketAddress extends SocketAddress
 
   /**
    * Returns the <code>port</code>
+   *
+   * @return The port of this address.
    */
   public final int getPort()
   {
@@ -172,6 +193,8 @@ public class InetSocketAddress extends SocketAddress
     
   /**
    * Returns the hashcode of the <code>InetSocketAddress</code>
+   *
+   * @return The hashcode for this address.
    */
   public final int hashCode()
   {
@@ -180,6 +203,8 @@ public class InetSocketAddress extends SocketAddress
 
   /**
    * Checks wether the address has been resolved or not
+   *
+   * @return True if address is unresolved.
    */
   public final boolean isUnresolved()
   {
@@ -188,6 +213,8 @@ public class InetSocketAddress extends SocketAddress
     
   /**
    * Returns the <code>InetSocketAddress</code> as string
+   *
+   * @return A string represenation of this address.
    */
   public String toString()
   {