Top Description Fields Constructors Methods
org.codehaus.commons.compiler.util.iterator

public Class ReverseListIterator<T>

extends FilterListIterator<T>
Class Inheritance
Type Parameters
<T>
The element type of the list iterator
Imports
java.util.ListIterator

A java.util.ListIterator that reverses the direction of all operations of a delegate java.util.ListIterator.

Field Summary

Inherited from org.codehaus.commons.compiler.util.iterator.FilterListIterator:
delegate

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public T
public int
public T
public int
Inherited from org.codehaus.commons.compiler.util.iterator.FilterListIterator:
addremoveset

Constructor Detail

ReverseListIteratorback to summary
public ReverseListIterator(ListIterator<T> delegate)

Method Detail

hasNextback to summary
public boolean hasNext()

Overrides org.codehaus.commons.compiler.util.iterator.FilterListIterator.hasNext.

Implements java.util.ListIterator.hasNext.

Calls delegate.java.util.ListIterator#hasPrevious()

Returns:boolean

Doc from java.util.ListIterator.hasNext.

true if the list iterator has more elements when traversing the list in the forward direction

Annotations
@Override
hasPreviousback to summary
public boolean hasPrevious()

Overrides org.codehaus.commons.compiler.util.iterator.FilterListIterator.hasPrevious.

Implements java.util.ListIterator.hasPrevious.

Calls delegate.java.util.ListIterator#hasNext()

Returns:boolean

Doc from java.util.ListIterator.hasPrevious.

true if the list iterator has more elements when traversing the list in the reverse direction

Annotations
@Override
nextback to summary
public T next()

Overrides org.codehaus.commons.compiler.util.iterator.FilterListIterator.next.

Implements java.util.ListIterator.next.

Calls delegate.java.util.ListIterator#previous()

Returns:T

Doc from java.util.ListIterator.next.

the next element in the list

Annotations
@Override
nextIndexback to summary
public int nextIndex()

Overrides org.codehaus.commons.compiler.util.iterator.FilterListIterator.nextIndex.

Implements java.util.ListIterator.nextIndex.

Throws an UnsupportedOperationException.

Returns:int

Doc from java.util.ListIterator.nextIndex.

the index of the element that would be returned by a subsequent call to next, or list size if the list iterator is at the end of the list

Annotations
@Override
previousback to summary
public T previous()

Overrides org.codehaus.commons.compiler.util.iterator.FilterListIterator.previous.

Implements java.util.ListIterator.previous.

Calls delegate.java.util.ListIterator#next()

Returns:T

Doc from java.util.ListIterator.previous.

the previous element in the list

Annotations
@Override
previousIndexback to summary
public int previousIndex()

Overrides org.codehaus.commons.compiler.util.iterator.FilterListIterator.previousIndex.

Implements java.util.ListIterator.previousIndex.

Throws an UnsupportedOperationException.

Returns:int

Doc from java.util.ListIterator.previousIndex.

the index of the element that would be returned by a subsequent call to previous, or -1 if the list iterator is at the beginning of the list

Annotations
@Override