| Modifier and Type | Method and Description |
|---|---|
void |
PositionList.addAfter(Position<E> p,
E e)
Inserts an element after position p.
|
void |
NodePositionList.addAfter(Position<E> p,
E element)
Inserts an element after position p.
|
void |
PositionList.addBefore(Position<E> p,
E e)
Inserts an element before position p.
|
void |
NodePositionList.addBefore(Position<E> p,
E element)
Inserts an element before position p.
|
void |
NodePositionList.addFirst(E element)
Inserts an element at the front of the list.
|
void |
NodePositionList.addLast(E element)
Inserts an element at the back of the list.
|
protected DNode<E> |
NodePositionList.checkPosition(Position<E> p) |
Position<E> |
PositionList.next(Position<E> p)
Returns the node after position p.
|
Position<E> |
NodePositionList.next(Position<E> p)
Returns the node after position p.
|
Position<E> |
PositionList.prev(Position<E> p)
Returns the node before position.
|
Position<E> |
NodePositionList.prev(Position<E> p)
Returns the node before position p.
|
Position<E> |
PositionList.remove(Position<E> p)
Remove the element at a given position
|
Position<E> |
NodePositionList.remove(Position<E> p)
Remove the element at a given position
|
E |
PositionList.set(Position<E> p,
E e)
Replaces the element stored at the given node
|
E |
NodePositionList.set(Position<E> p,
E element)
Replaces the element stored at the given node
|