Orbital library

orbital.util
Class DelegateListIterator

java.lang.Object
  extended by orbital.util.DelegateIterator
      extended by 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.
 
Method Summary
 void add(java.lang.Object o)
           
 boolean hasPrevious()
           
 int nextIndex()
           
 java.lang.Object previous()
           
 int previousIndex()
           
 void set(java.lang.Object o)
           
protected  void setDelegatee(java.util.Iterator delegatee)
          Set the delegatee Iterator to which operations are delegated.
protected  void setDelegatee(java.util.ListIterator delegatee)
           
 
Methods inherited from class orbital.util.DelegateIterator
getDelegatee, hasNext, next, remove
 
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
 

Constructor Detail

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.
Method Detail

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

Orbital library
1.3.0: 11 Apr 2009

Copyright © 1996-2009 André Platzer
All Rights Reserved.