server
Class WordMoleClientList

java.lang.Object
  extended by server.WordMoleClientList

public class WordMoleClientList
extends java.lang.Object


Constructor Summary
WordMoleClientList()
           
WordMoleClientList(WordMoleClient client, Client name)
          Constructor
 
Method Summary
 void add(WordMoleClient client, Client name)
          Adds a WordMoleClient with username to the list.
 Client[] clients()
           
 WordMoleClient get(Client client)
          Returns the WordMoleClient with client.
 Client get(WordMoleClient client)
          Returns the Client with WordMoleClient.
 java.util.Iterator<WordMoleClient> iterator()
          Returns an iterator over the elements in this collection.
 void remove(Client client)
          Removes a WordMoleClient from the system.
 boolean update(Client client)
          Updates the client in the List
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordMoleClientList

public WordMoleClientList()

WordMoleClientList

public WordMoleClientList(WordMoleClient client,
                          Client name)
Constructor

Parameters:
client - - Creates a new WordMoleClientList with element c
name - - Name of the first WordMoleClient
Method Detail

add

public void add(WordMoleClient client,
                Client name)
Adds a WordMoleClient with username to the list.

Parameters:
client - - WordMoleClient to add.
name - - Client of the WordMoleClient

update

public boolean update(Client client)
Updates the client in the List

Parameters:
client - - Client to be updated

remove

public void remove(Client client)
Removes a WordMoleClient from the system.

Parameters:
client - - Client of the WordMoleClient

get

public WordMoleClient get(Client client)
Returns the WordMoleClient with client.

Parameters:
client - - Client of the desired WordMoleClient
Returns:
WordMoleClient

get

public Client get(WordMoleClient client)
Returns the Client with WordMoleClient.

Parameters:
client - - WordMoleClient of the desired Client
Returns:
Client

iterator

public java.util.Iterator<WordMoleClient> iterator()
Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned .

Returns:
Iterator

clients

public Client[] clients()