Class ConnectionStore

java.lang.Object
   |
   +----ConnectionStore

class ConnectionStore
extends Object
implements Store
This class implements a Store for Connections using java.util.Vector. Specific class of meant-to-be-generic class java.util.Vector. This class really should be a subclass of java.util.Vector, but most members of java.util.Vector are final.

Version:
$Revision: 1.5 $
See Also:
Store, Connection, Vector

Variable Index

 o list

Constructor Index

 o ConnectionStore()

Method Index

 o add(Connection)
 o add(StoreElement)
This Store should work on Connections instead of StoreElements, but method add(StoreElement) is in the interface this class implements.
 o at(int)
 o connections()
 o elements()
This method is here because it is specified in the interface Store.
 o first()
 o last()
 o remove(Connection)
 o removeAll()
 o size()
 o toString()

Variables

 o list
 private Vector list

Constructors

 o ConnectionStore
 public ConnectionStore()

Methods

 o add
 public void add(Connection c)
 o add
 public void add(StoreElement item)
This Store should work on Connections instead of StoreElements, but method add(StoreElement) is in the interface this class implements.

 o at
 public Connection at(int index)
 o first
 public Connection first()
 o remove
 public void remove(Connection c)
 o removeAll
 public void removeAll()
 o size
 public int size()
 o connections
 public Enumeration connections()
 o last
 public Connection last()
 o elements
 public Enumeration elements()
This method is here because it is specified in the interface Store. Given that this store only works with Connections, it makes more sense to name this method connections(). This method just refers to connections() for its result.

 o toString
 public String toString()
Overrides:
toString in class Object