|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBiList<E>
class BiList<E>
A circularly linked class implementing the BiListI interface.
Nested Class Summary | |
---|---|
private class |
BiList.BiIterator
A true inner class that includes a link (BiList.this) to the enclosing BiList. |
(package private) static class |
BiList.BiListException
|
private static class |
BiList.Node<E>
|
Field Summary | |
---|---|
private BiList.Node<E> |
head
The header node for the list. |
private int |
length
The length of this list. |
Constructor Summary | |
---|---|
BiList()
|
Method Summary | ||
---|---|---|
BiList<E> |
clear()
Clears this; |
|
(package private) boolean |
delete(E elt)
|
|
BiList<E> |
insertFront(E o)
Inserts object o at the front of this. |
|
BiList<E> |
insertRear(E o)
Inserts the object o at the rear of this list. |
|
boolean |
isEmpty()
|
|
int |
length()
|
|
|
map(ILambda<E,R> f)
|
|
BiIteratorI<E> |
newIterator()
|
|
BiList<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. |
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private BiList.Node<E> head
private int length
Constructor Detail |
---|
BiList()
Method Detail |
---|
public String toString()
toString
in class Object
public boolean isEmpty()
isEmpty
in interface BiListI<E>
public BiList<E> newList()
BiListI
newList
in interface BiListI<E>
public int length()
length
in interface BiListI<E>
public BiList<E> clear()
BiListI
clear
in interface BiListI<E>
public <R> BiList<R> map(ILambda<E,R> f)
public BiList<E> insertFront(E o)
BiListI
insertFront
in interface BiListI<E>
public BiList<E> insertRear(E o)
BiListI
insertRear
in interface BiListI<E>
public E remFront()
BiListI
remFront
in interface BiListI<E>
public BiIteratorI<E> newIterator()
newIterator
in interface BiListI<E>
public E remRear()
BiListI
remRear
in interface BiListI<E>
boolean delete(E elt)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |