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
-
list
-
-
ConnectionStore()
-
-
add(Connection)
-
-
add(StoreElement)
- This Store should work on Connections instead of StoreElements, but
method add(StoreElement) is in the interface this class implements.
-
at(int)
-
-
connections()
-
-
elements()
- This method is here because it is specified in the interface Store.
-
first()
-
-
last()
-
-
remove(Connection)
-
-
removeAll()
-
-
size()
-
-
toString()
-
list
private Vector list
ConnectionStore
public ConnectionStore()
add
public void add(Connection c)
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.
at
public Connection at(int index)
first
public Connection first()
remove
public void remove(Connection c)
removeAll
public void removeAll()
size
public int size()
connections
public Enumeration connections()
last
public Connection last()
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.
toString
public String toString()
- Overrides:
- toString in class Object