Class ClientList

All Implemented Interfaces:
Iterable<Client>, Collection<Client>, List<Client>

public final class ClientList extends WrapperList<Client>
Modifiable list of client connectors.
Author:
Jerome Louvel
  • Constructor Details

    • ClientList

      public ClientList(Context context)
      Constructor.
      Parameters:
      context - The context.
  • Method Details

    • add

      public boolean add(Client client)
      Description copied from class: WrapperList
      Adds a element at the end of the list.
      Specified by:
      add in interface Collection<Client>
      Specified by:
      add in interface List<Client>
      Overrides:
      add in class WrapperList<Client>
      Returns:
      True (as per the general contract of the Collection.add method).
    • add

      public Client add(Protocol protocol)
      Adds a new client connector in the map supporting the given protocol.
      Parameters:
      protocol - The connector protocol.
      Returns:
      The added client.
    • getContext

      public Context getContext()
      Returns the context.
      Returns:
      The context.
    • setContext

      public void setContext(Context context)
      Sets the context.
      Parameters:
      context - The context.