org.jwall.audit.script.utils
Class ListIteratorImpl

java.lang.Object
  extended by org.jwall.audit.script.utils.ListIteratorImpl
All Implemented Interfaces:
Iterator<ScriptEvent>, ListIterator<ScriptEvent>

public class ListIteratorImpl
extends Object
implements Iterator<ScriptEvent>, ListIterator<ScriptEvent>

This is a simple implementation of an iterator and a list iterator. It is backed by a lazy event list.

Author:
Christian Bockermann <chris@jwall.org>

Constructor Summary
ListIteratorImpl(EventList<?> list)
           
ListIteratorImpl(EventList<?> list, int offset)
           
 
Method Summary
 void add(ScriptEvent arg0)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 ScriptEvent next()
           
 int nextIndex()
           
 ScriptEvent previous()
           
 int previousIndex()
           
 void remove()
           
 void set(ScriptEvent arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListIteratorImpl

public ListIteratorImpl(EventList<?> list)

ListIteratorImpl

public ListIteratorImpl(EventList<?> list,
                        int offset)
Method Detail

add

public void add(ScriptEvent arg0)
Specified by:
add in interface ListIterator<ScriptEvent>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<ScriptEvent>
Specified by:
hasNext in interface ListIterator<ScriptEvent>

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator<ScriptEvent>

next

public ScriptEvent next()
Specified by:
next in interface Iterator<ScriptEvent>
Specified by:
next in interface ListIterator<ScriptEvent>

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator<ScriptEvent>

previous

public ScriptEvent previous()
Specified by:
previous in interface ListIterator<ScriptEvent>

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator<ScriptEvent>

remove

public void remove()
Specified by:
remove in interface Iterator<ScriptEvent>
Specified by:
remove in interface ListIterator<ScriptEvent>

set

public void set(ScriptEvent arg0)
Specified by:
set in interface ListIterator<ScriptEvent>


Copyright © 2012 jwall.org. All Rights Reserved.