All Packages Class Hierarchy This Package Previous Next Index
Class examples.recover.RestartList
java.lang.Object
|
+----examples.recover.RestartList
- public final class RestartList
- extends Object
- implements Serializable
This class holds object names regitered with the Restart service.
It uses both a Hashtable and a Vector. The hashtable is used
for faster retieval while the Vector is used for a queue.
Objects are kept in the order they have been added to the list.
-
RestartList()
- Default constructor.
-
add(Object)
- Adds the object to the end of the restart list.
-
contains(Object)
- Tests if the specified object is a component in this restart list.
-
elements()
- Returns an enumeration of the components of this restart list.
-
getAll()
- Returns a list of the components of this restart list.
-
remove(Object)
- Removes the object from the restart list.
-
size()
- Returns the number of components in this restart list.
-
toString()
- Returns a string representation of this restart list.
RestartList
public RestartList()
- Default constructor.
remove
public void remove(Object object)
- Removes the object from the restart list.
- Parameters:
-
object - The component to be renoved.
add
public void add(Object object)
- Adds the object to the end of the restart list.
- Parameters:
-
object - The component to be added.
contains
public boolean contains(Object object)
- Tests if the specified object is a component in this restart list.
- Returns:
-
true if the specified object is a component in
this list; false otherwise.
elements
public synchronized Enumeration elements()
- Returns an enumeration of the components of this restart list.
- Returns:
- an enumeration of the components of this list.
- See Also:
- Enumeration
getAll
public Vector getAll()
- Returns a list of the components of this restart list.
- Returns:
- a clone of the queue.
size
public int size()
- Returns the number of components in this restart list.
- Returns:
- The number of components in this list.
toString
public String toString()
- Returns a string representation of this restart list.
- Returns:
- A string representation of this list.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index