org.objectweb.dream.queue
Interface List

All Known Implementing Classes:
ListAddRemoveFirstLastFastImpl, ListAddRemoveFirstLastImpl

public interface List

This interface defines methods that must be implemented by a list. Lists can be used to implement buffers.


Field Summary
static String ITF_NAME
          The commonly used name to refer to this interface.
 
Method Summary
 void add(Object o)
          Adds the specified element to the list.
 boolean isEmpty()
          Returns true if the list is empty.
 Object remove()
          Removes an object from the list.
 

Field Detail

ITF_NAME

public static final String ITF_NAME
The commonly used name to refer to this interface.

See Also:
Constant Field Values
Method Detail

add

public void add(Object o)
Adds the specified element to the list.

Parameters:
o - element to be added to this list.

remove

public Object remove()
Removes an object from the list.

Returns:
the removed object, or null if the list is empty.

isEmpty

public boolean isEmpty()
Returns true if the list is empty.

Returns:
true if the list is empty.


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.