com.enspire.gemini.bidirectional
Class BidirectionalListIterator
java.lang.Object
org.apache.commons.collections.iterators.AbstractListIteratorDecorator
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
Fields inherited from class org.apache.commons.collections.iterators.AbstractListIteratorDecorator |
iterator |
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 |
BidirectionalListIterator
public BidirectionalListIterator(java.util.ListIterator listIterator,
BidirectionalProperty bidirectionalProperty)
- Creates the bidirectional list iterator.
- Parameters:
listIterator
- an iterator that will be decoratedbidirectionalProperty
- the source of the decorated iterator
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.