com.enspire.gemini.bidirectional
Class BidirectionalListIterator

java.lang.Object
  extended by org.apache.commons.collections.iterators.AbstractListIteratorDecorator
      extended by com.enspire.gemini.bidirectional.BidirectionalListIterator
All Implemented Interfaces:
java.util.Iterator, java.util.ListIterator

public class BidirectionalListIterator
extends org.apache.commons.collections.iterators.AbstractListIteratorDecorator

e-nspire site

Decorator around another BidirectionlListIterator. Ensures bidirectional behaviour over iterated elements.

Since:
1.0
Author:
Dragan Djuric

Field Summary
 
Fields inherited from class org.apache.commons.collections.iterators.AbstractListIteratorDecorator
iterator
 
Constructor Summary
BidirectionalListIterator(java.util.ListIterator listIterator, BidirectionalProperty bidirectionalProperty)
          Creates the bidirectional list iterator.
 
Method Summary
 void add(java.lang.Object obj)
           
 BidirectionalProperty getBidirectionalProperty()
           
 java.lang.Object getCurrent()
           
 java.lang.Object next()
           
 java.lang.Object previous()
           
 void remove()
           
 void set(java.lang.Object obj)
           
 
Methods inherited from class org.apache.commons.collections.iterators.AbstractListIteratorDecorator
getListIterator, hasNext, hasPrevious, nextIndex, previousIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BidirectionalListIterator

public BidirectionalListIterator(java.util.ListIterator listIterator,
                                 BidirectionalProperty bidirectionalProperty)
Creates the bidirectional list iterator.

Parameters:
listIterator - an iterator that will be decorated
bidirectionalProperty - the source of the decorated iterator
Method Detail

getBidirectionalProperty

public BidirectionalProperty getBidirectionalProperty()
Returns:
Returns the bidirectionalProperty.

getCurrent

public java.lang.Object getCurrent()
Returns:
Returns the last.

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Specified by:
next in interface java.util.ListIterator
Overrides:
next in class org.apache.commons.collections.iterators.AbstractListIteratorDecorator
See Also:
Iterator.next()

previous

public java.lang.Object previous()
Specified by:
previous in interface java.util.ListIterator
Overrides:
previous in class org.apache.commons.collections.iterators.AbstractListIteratorDecorator
See Also:
ListIterator.previous()

remove

public void remove()
Specified by:
remove in interface java.util.Iterator
Specified by:
remove in interface java.util.ListIterator
Overrides:
remove in class org.apache.commons.collections.iterators.AbstractListIteratorDecorator
See Also:
Iterator.remove()

set

public void set(java.lang.Object obj)
Specified by:
set in interface java.util.ListIterator
Overrides:
set in class org.apache.commons.collections.iterators.AbstractListIteratorDecorator
See Also:
AbstractListIteratorDecorator.set(java.lang.Object)

add

public void add(java.lang.Object obj)
Specified by:
add in interface java.util.ListIterator
Overrides:
add in class org.apache.commons.collections.iterators.AbstractListIteratorDecorator
See Also:
AbstractListIteratorDecorator.add(java.lang.Object)


Copyright © 2005 e-nspire. All Rights Reserved.