|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.comp211.laundry.list.BiList<T>
edu.rice.comp211.laundry.sync.SyncBiList<T>
public class SyncBiList<T>
Specialty BiList that is used by the GUI to create animations by slowing the speed of the list operations down. Students should not need to use this class at all.
Constructor Summary | |
---|---|
SyncBiList()
|
Method Summary | |
---|---|
BiList<T> |
insertFront(T o)
Inserts the given value at the front of the list |
BiList<T> |
insertRear(T o)
Insert the given value at the end of the list |
boolean |
isEmpty()
Test if this enumeration is empty |
int |
length()
Returns the number of elements in the list |
BiIteratorI<T> |
newIterator()
Factory method that creates an iterator initialized to point at the start of the list. |
BiListI<T> |
newList()
Factory method for a new, empty list that holds the same type of elements as this list. |
T |
remFront()
Removes the first element of the list |
T |
remRear()
Remove the last element in the list |
Methods inherited from class edu.rice.comp211.laundry.list.BiList |
---|
accept, equals, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SyncBiList()
Method Detail |
---|
public boolean isEmpty()
EnumI
isEmpty
in interface EnumI<T>
isEmpty
in class BiList<T>
public BiListI<T> newList()
BiList
newList
in interface BiListI<T>
newList
in interface ListI<T>
newList
in class BiList<T>
public int length()
BiList
length
in interface ListI<T>
length
in class BiList<T>
public BiList<T> insertFront(T o)
BiList
insertFront
in interface ListI<T>
insertFront
in class BiList<T>
o
- the new element to insert
public BiList<T> insertRear(T o)
BiList
insertRear
in interface ListI<T>
insertRear
in class BiList<T>
o
- the new element to insert
public T remFront()
BiList
remFront
in interface ListI<T>
remFront
in class BiList<T>
public BiIteratorI<T> newIterator()
BiList
newIterator
in interface BiListI<T>
newIterator
in interface EnumI<T>
newIterator
in interface ListI<T>
newIterator
in class BiList<T>
public T remRear()
BiList
remRear
in interface BiListI<T>
remRear
in class BiList<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |