Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Util.Templates
Class ListWrapper.ExceptionHandler.Iterator  view ListWrapper.ExceptionHandler.Iterator download ListWrapper.ExceptionHandler.Iterator.java

java.lang.Object
  extended byUtil.Templates.ListWrapper.ExceptionHandler.Iterator
All Implemented Interfaces:
java.util.Iterator, java.util.ListIterator, ListIterator.ExceptionHandler
Enclosing class:
ListWrapper.ExceptionHandler

public static class ListWrapper.ExceptionHandler.Iterator
extends java.lang.Object
implements ListIterator.ExceptionHandler


Field Summary
private  java.util.ListIterator i
           
 
Constructor Summary
ListWrapper.ExceptionHandler.Iterator(java.util.ListIterator l)
           
 
Method Summary
 void add(java.lang.Object o)
          Insert an element into the list at the current position of the iterator (optional operation).
 boolean hasNext()
          Tests whether there are elements remaining in the list in the forward direction.
 boolean hasPrevious()
          Tests whether there are elements remaining in the list in the reverse direction.
 java.lang.Object next()
          Obtain the next element in the list in the forward direction.
 Compil3r.Quad.ExceptionHandler nextExceptionHandler()
           
 int nextIndex()
          Find the index of the element that would be returned by a call to next.
 java.lang.Object previous()
          Obtain the next element in the list in the reverse direction.
 Compil3r.Quad.ExceptionHandler previousExceptionHandler()
           
 int previousIndex()
          Find the index of the element that would be returned by a call to previous.
 void remove()
          Remove from the list the element last returned by a call to next or previous (optional operation).
 void set(java.lang.Object o)
          Replace the element last returned by a call to next or previous with a given object (optional operation).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

private java.util.ListIterator i
Constructor Detail

ListWrapper.ExceptionHandler.Iterator

public ListWrapper.ExceptionHandler.Iterator(java.util.ListIterator l)
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: java.util.ListIterator
Tests whether there are elements remaining in the list in the forward direction. In other words, next() will not fail with a NoSuchElementException.

Specified by:
hasNext in interface java.util.ListIterator

hasPrevious

public boolean hasPrevious()
Description copied from interface: java.util.ListIterator
Tests whether there are elements remaining in the list in the reverse direction. In other words, previous() will not fail with a NoSuchElementException.

Specified by:
hasPrevious in interface java.util.ListIterator

nextIndex

public int nextIndex()
Description copied from interface: java.util.ListIterator
Find the index of the element that would be returned by a call to next. If hasNext() returns false, this returns the list size.

Specified by:
nextIndex in interface java.util.ListIterator

previousIndex

public int previousIndex()
Description copied from interface: java.util.ListIterator
Find the index of the element that would be returned by a call to previous. If hasPrevious() returns false, this returns -1.

Specified by:
previousIndex in interface java.util.ListIterator

next

public java.lang.Object next()
Description copied from interface: java.util.ListIterator
Obtain the next element in the list in the forward direction. Repeated calls to next may be used to iterate over the entire list, or calls to next and previous may be used together to go forwards and backwards. Alternating calls to next and previous will return the same element.

Specified by:
next in interface java.util.ListIterator

nextExceptionHandler

public Compil3r.Quad.ExceptionHandler nextExceptionHandler()
Specified by:
nextExceptionHandler in interface ListIterator.ExceptionHandler

previous

public java.lang.Object previous()
Description copied from interface: java.util.ListIterator
Obtain the next element in the list in the reverse direction. Repeated calls to previous may be used to iterate backwards over the entire list, or calls to next and previous may be used together to go forwards and backwards. Alternating calls to next and previous will return the same element.

Specified by:
previous in interface java.util.ListIterator

previousExceptionHandler

public Compil3r.Quad.ExceptionHandler previousExceptionHandler()
Specified by:
previousExceptionHandler in interface ListIterator.ExceptionHandler

remove

public void remove()
Description copied from interface: java.util.ListIterator
Remove from the list the element last returned by a call to next or previous (optional operation). This method may only be called if neither add nor remove have been called since the last call to next or previous.

Specified by:
remove in interface java.util.ListIterator

set

public void set(java.lang.Object o)
Description copied from interface: java.util.ListIterator
Replace the element last returned by a call to next or previous with a given object (optional operation). This method may only be called if neither add nor remove have been called since the last call to next or previous.

Specified by:
set in interface java.util.ListIterator

add

public void add(java.lang.Object o)
Description copied from interface: java.util.ListIterator
Insert an element into the list at the current position of the iterator (optional operation). The element is inserted in between the element that would be returned by previous and the element that would be returned by next. After the insertion, a subsequent call to next is unaffected, but a call to previous returns the item that was added. The values returned by nextIndex() and previousIndex() are incremented.

Specified by:
add in interface java.util.ListIterator