hasPrevious

previous

Returns the previous element in the list. This method
may be called repeatedly to iterate through the list
backwards, or intermixed with calls to next to go back
and forth. (Note that alternating calls to next and
previous will return the same element repeatedly.)

peekNext

next

hasNext

public boolean hasNext()

Check if there is any more tokens.

markForSnapshot

public void markForSnapshot()

Marks the position to start recoding. Illegal to call
markForSnapshot twice before calling
createSnapshot(). This means, it is not
possible to create overlapping snapshots.
The tokens would include that would have been
returned by next() (Optional operation).