Class ConnectorStore
java.lang.Object
|
+----ConnectorStore
- class ConnectorStore
- extends Object
- implements Store
This class implements a Store for Connectors 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.10 $
-
list
-
-
ConnectorStore()
-
-
add(Connector)
-
-
add(StoreElement)
- This Store should work on Connectors instead of StoreElements, but
method add(StoreElement) is in the interface this class implements.
-
append(ConnectorStore)
- Append the contents of another ConnectorStore to this ConnectorStore.
-
at(int)
-
-
connectors()
-
-
contains(Connector)
- Tests if the specified Connector is a component in this Store.
-
elements()
- This method is here because it is specified in the interface
Store.
-
first()
-
-
indexOf(Connector)
-
-
removeAll()
-
-
removeAt(int)
-
-
size()
-
-
toString()
-
list
private Vector list
ConnectorStore
public ConnectorStore()
add
public void add(Connector m)
add
public void add(StoreElement item)
- This Store should work on Connectors instead of StoreElements, but
method add(StoreElement) is in the interface this class implements.
at
public Connector at(int index)
indexOf
public int indexOf(Connector connector)
first
public Connector first()
removeAt
public void removeAt(int index)
removeAll
public void removeAll()
size
public int size()
connectors
public Enumeration connectors()
elements
public Enumeration elements()
- This method is here because it is specified in the interface
Store. Given that this store only works with Connectors, it
makes more sense to name this method connectors(). This method
just refers to connectors() for its result.
toString
public String toString()
- Overrides:
- toString in class Object
append
public void append(ConnectorStore other)
- Append the contents of another ConnectorStore to this ConnectorStore.
contains
public boolean contains(Connector c)
- Tests if the specified Connector is a component in this Store.
- Parameters:
- c - a Connector
- Returns:
-
true
if the specified Connector is a component in
this Store; false
otherwise.