Interface BiListI<E>

All Known Implementing Classes:
BiList

interface BiListI<E>


Method Summary
 BiList<E> clear()
          Clears this;
 BiListI<E> insertFront(E o)
          Inserts object o at the front of this.
 BiListI<E> insertRear(E o)
          Inserts the object o at the rear of this list.
 boolean isEmpty()
           
 int length()
           
 BiIteratorI<E> newIterator()
           
 BiListI<E> newList()
          Constructs a new empty BiList.
 E remFront()
          Removes the object at the front of the list.
 E remRear()
          Removes the last element of this list.
 

Method Detail

isEmpty

boolean isEmpty()
Returns:
true if this enumeration is empty.

newList

BiListI<E> newList()
Constructs a new empty BiList.


length

int length()
Returns:
the length of this list.

insertFront

BiListI<E> insertFront(E o)
Inserts object o at the front of this.

Returns:
this list.

insertRear

BiListI<E> insertRear(E o)
Inserts the object o at the rear of this list.

Returns:
this list.

clear

BiList<E> clear()
Clears this;

Returns:
this list.

remFront

E remFront()
Removes the object at the front of the list.

Returns:
the removed object.

remRear

E remRear()
Removes the last element of this list.

Throws:
a - BiListException if no such element exists.

newIterator

BiIteratorI<E> newIterator()
Returns:
a new iterator for traversing this.