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 $

Variable Index

 o list

Constructor Index

 o ConnectorStore()

Method Index

 o add(Connector)
 o add(StoreElement)
This Store should work on Connectors instead of StoreElements, but method add(StoreElement) is in the interface this class implements.
 o append(ConnectorStore)
Append the contents of another ConnectorStore to this ConnectorStore.
 o at(int)
 o connectors()
 o contains(Connector)
Tests if the specified Connector is a component in this Store.
 o elements()
This method is here because it is specified in the interface Store.
 o first()
 o indexOf(Connector)
 o removeAll()
 o removeAt(int)
 o size()
 o toString()

Variables

 o list
 private Vector list

Constructors

 o ConnectorStore
 public ConnectorStore()

Methods

 o add
 public void add(Connector m)
 o 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.

 o at
 public Connector at(int index)
 o indexOf
 public int indexOf(Connector connector)
 o first
 public Connector first()
 o removeAt
 public void removeAt(int index)
 o removeAll
 public void removeAll()
 o size
 public int size()
 o connectors
 public Enumeration connectors()
 o 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.

 o toString
 public String toString()
Overrides:
toString in class Object
 o append
 public void append(ConnectorStore other)
Append the contents of another ConnectorStore to this ConnectorStore.

 o 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.