|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.leeds.ccg.andyt.grids.utilities.ListIteratorAbstract<E>
public abstract class ListIteratorAbstract<E>
A basic wrapper for the interface.
| Constructor Summary | |
|---|---|
ListIteratorAbstract()
|
|
| Method Summary | |
|---|---|
abstract void |
add(E o)
Inserts the specified element into the list (optional operation). |
abstract boolean |
hasNext()
Returns true if this list iterator has more elements when traversing the list in the forward direction. |
abstract boolean |
hasPrevious()
Returns true if this list iterator has more elements when traversing the list in the reverse direction. |
abstract E |
next()
Returns the next element in the list. |
abstract int |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next. |
abstract E |
previous()
Returns the previous element in the list. |
abstract int |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous. |
abstract void |
remove()
Removes from the list the last element that was returned by next or previous (optional operation). |
abstract void |
set(E o)
Replaces the last element returned by next or previous with the specified element (optional operation). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListIteratorAbstract()
| Method Detail |
|---|
public abstract boolean hasNext()
hasNext in interface java.util.Iterator<E>hasNext in interface java.util.ListIterator<E>public abstract E next()
next in interface java.util.Iterator<E>next in interface java.util.ListIterator<E>NoSuchElementException - if the iteration has no next element.public abstract boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<E>public abstract E previous()
previous in interface java.util.ListIterator<E>NoSuchElementException - if the iteration has no previous
element.public abstract int nextIndex()
nextIndex in interface java.util.ListIterator<E>public abstract int previousIndex()
previousIndex in interface java.util.ListIterator<E>public abstract void remove()
remove in interface java.util.Iterator<E>remove in interface java.util.ListIterator<E>java.lang.UnsupportedOperationException - if the remove
operation is not supported by this list iterator.
java.lang.IllegalStateException - neither next nor
previous have been called, or remove or
add have been called after the last call to *
next or previous.public abstract void set(E o)
set in interface java.util.ListIterator<E>o - the element with which to replace the last element returned by
next or previous.
java.lang.UnsupportedOperationException - if the set operation
is not supported by this list iterator.
java.lang.ClassCastException - if the class of the specified element
prevents it from being added to this list.
java.lang.IllegalArgumentException - if some aspect of the specified
element prevents it from being added to this list.
java.lang.IllegalStateException - if neither next nor
previous have been called, or remove or
add have been called after the last call to
next or previous.public abstract void add(E o)
add in interface java.util.ListIterator<E>o - the element to insert.
java.lang.UnsupportedOperationException - if the add method is
not supported by this list iterator.
java.lang.ClassCastException - if the class of the specified element
prevents it from being added to this list.
java.lang.IllegalArgumentException - if some aspect of this element
prevents it from being added to this list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||