orbital.util
Class DelegateListIterator
java.lang.Object
orbital.util.DelegateIterator
orbital.util.DelegateListIterator
- All Implemented Interfaces:
- java.io.Serializable, java.util.Iterator, java.util.ListIterator
public class DelegateListIterator
- extends DelegateIterator
- implements java.util.ListIterator
A DelegateListIterator that works as a delegator to iterators.
It implements the java.util.ListIterator
interface itself, and so
a DelegateListIterator is an iterator delegating to a specified implementation
ListIterator.
- Author:
- André Platzer
- See Also:
ListIterator
,
Serialized Form- Structure:
- delegate delegatee:java.util.ListIterator, implements java.util.ListIterator, implements java.io.Serializable
Constructor Summary |
protected |
DelegateListIterator(java.util.ListIterator delegatee)
Extend to create an ListIterator delegating to an implementation ListIterator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.ListIterator |
hasNext, next, remove |
DelegateListIterator
protected DelegateListIterator(java.util.ListIterator delegatee)
- Extend to create an ListIterator delegating to an implementation ListIterator.
- Parameters:
delegatee
- the implementation-ListIterator to that ListIterator operations are delegated.
setDelegatee
protected void setDelegatee(java.util.ListIterator delegatee)
setDelegatee
protected void setDelegatee(java.util.Iterator delegatee)
- Description copied from class:
DelegateIterator
- Set the delegatee Iterator to which operations are delegated.
- Overrides:
setDelegatee
in class DelegateIterator
- Parameters:
delegatee
- the implementation-Iterator that Iterator operations are delegated to.
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interface java.util.ListIterator
previous
public java.lang.Object previous()
- Specified by:
previous
in interface java.util.ListIterator
add
public void add(java.lang.Object o)
- Specified by:
add
in interface java.util.ListIterator
set
public void set(java.lang.Object o)
- Specified by:
set
in interface java.util.ListIterator
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interface java.util.ListIterator
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interface java.util.ListIterator
Copyright © 1996-2009 André Platzer
All Rights Reserved.