Chat
Class HostList.HostItem

java.lang.Object
  |
  +--Chat.HostList.HostItem
Enclosing class:
HostList

class HostList.HostItem
extends java.lang.Object

A data-storage class representing an item in the list of remote users.


Field Summary
(package private)  java.lang.String host
          The hostname of the user as a string, either an IP adress or a DNS name.
(package private)  java.lang.String nick
          The nickname of the user.
(package private)  int port
          The port used by the application.
(package private)  boolean valid
          Indicates that the object is valid, i.e. enlisted in the HostList.
 
Constructor Summary
(package private) HostList.HostItem(java.lang.String nick, java.lang.String host, int port)
          Constructs an immutable object representing the host list item.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

nick

final java.lang.String nick
The nickname of the user.

host

final java.lang.String host
The hostname of the user as a string, either an IP adress or a DNS name.

port

final int port
The port used by the application.

valid

boolean valid
Indicates that the object is valid, i.e. enlisted in the HostList.
Constructor Detail

HostList.HostItem

HostList.HostItem(java.lang.String nick,
                  java.lang.String host,
                  int port)
Constructs an immutable object representing the host list item.
Parameters:
nick - user nickname
host - user hostname (IP adress)
port - user port
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object