: Class LinkedListIterator

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weiss.nonstandard
Class LinkedListIterator

    java.lang.Object
      |
      +--weiss.nonstandard.LinkedListIterator

public class LinkedListIterator
extends java.lang.Object

Linked list implementation of the list iterator using a header node.

See Also:
  `LinkedList`

Method Summary
`void` | `advance()` Advance the current position to the next node in the list.
`boolean` | `isValid()` Test if the current position is a valid position in the list.
`java.lang.Object` | `retrieve()` Return the item stored in the current position.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### isValid

    public boolean isValid()

  Test if the current position is a valid position in the list.
  Returns:
    true if the current position is valid.

### retrieve

    public java.lang.Object retrieve()

  Return the item stored in the current position.
  Returns:
    the stored item or null if the current position is not in the list.

### advance

    public void advance()

  Advance the current position to the next node in the list. If the current position is null, then do nothing.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD