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.


Constructor Index

 o RestartList()
Default constructor.

Method Index

 o add(Object)
Adds the object to the end of the restart list.
 o contains(Object)
Tests if the specified object is a component in this restart list.
 o elements()
Returns an enumeration of the components of this restart list.
 o getAll()
Returns a list of the components of this restart list.
 o remove(Object)
Removes the object from the restart list.
 o size()
Returns the number of components in this restart list.
 o toString()
Returns a string representation of this restart list.

Constructors

 o RestartList
 public RestartList()
Default constructor.

Methods

 o remove
 public void remove(Object object)
Removes the object from the restart list.

Parameters:
object - The component to be renoved.
 o add
 public void add(Object object)
Adds the object to the end of the restart list.

Parameters:
object - The component to be added.
 o 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.
 o 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
 o getAll
 public Vector getAll()
Returns a list of the components of this restart list.

Returns:
a clone of the queue.
 o size
 public int size()
Returns the number of components in this restart list.

Returns:
The number of components in this list.
 o 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