edu.rice.comp211.laundry.list
Interface BiListI<T>

All Superinterfaces:
EnumI<T>, ListI<T>
All Known Implementing Classes:
BiList, SyncBiList

public interface BiListI<T>
extends ListI<T>


Method Summary
<R> R
accept(BiListIVisitor<T,R> visitor)
           
 BiIteratorI<T> newIterator()
          The inherited newIterator method with a narrowed output type.
 BiListI<T> newList()
          The inherited newList with a narrowed output type.
 T remRear()
          Removes the last element l of this list.
 
Methods inherited from interface edu.rice.comp211.laundry.list.ListI
insertFront, insertRear, length, remFront
 
Methods inherited from interface edu.rice.comp211.laundry.list.EnumI
isEmpty
 

Method Detail

newList

BiListI<T> newList()
The inherited newList with a narrowed output type.

Specified by:
newList in interface ListI<T>
Returns:
a new empty list.

remRear

T remRear()
Removes the last element l of this list.

Returns:
the removed element l
Throws:
BiListException - if no such element exists.

newIterator

BiIteratorI<T> newIterator()
The inherited newIterator method with a narrowed output type.

Specified by:
newIterator in interface EnumI<T>
Specified by:
newIterator in interface ListI<T>
Returns:
The inherited newIterator method with a narrowed output type

accept

<R> R accept(BiListIVisitor<T,R> visitor)