com.irs.jam
Class DListEnumerator

java.lang.Object
  |
  +--com.irs.jam.DListEnumerator
All Implemented Interfaces:
java.util.Enumeration, java.io.Serializable
Direct Known Subclasses:
BindingListEnumerator, ConditionListEnumerator, ExpListEnumerator

public class DListEnumerator
extends java.lang.Object
implements java.util.Enumeration, java.io.Serializable

Link data structure for DList (doubly linked list)

See Also:
Serialized Form

Field Summary
protected  DLink _current
           
protected  DList _list
           
 
Constructor Summary
DListEnumerator(DList list)
           
 
Method Summary
 void appendHere(DList list)
           
 void appendHere(java.lang.Object ent)
          Add an element after the current one
 java.lang.Object getNext(java.lang.Object argument)
          Return an element in the list in sequence satisfying the matching function.
 java.lang.Object getThis()
          Return the current element in the list in sequence
 boolean hasMoreElements()
           
 void insertHere(DList list)
           
 void insertHere(java.lang.Object ent)
          Add an element before the current one
 boolean isEndOfList()
          True if there is no more element in the list
 java.lang.Object nextElement()
           
 void removeThis()
          Remove the current link from the list
 void replaceThis(java.lang.Object ent)
          Replace the current one with an element
 void reset()
          Reinitialize the enumerator
 void reset(DList list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_list

protected DList _list

_current

protected DLink _current
Constructor Detail

DListEnumerator

public DListEnumerator(DList list)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration

reset

public void reset()
Reinitialize the enumerator

reset

public void reset(DList list)

isEndOfList

public boolean isEndOfList()
True if there is no more element in the list

removeThis

public void removeThis()
Remove the current link from the list

replaceThis

public void replaceThis(java.lang.Object ent)
Replace the current one with an element

insertHere

public void insertHere(java.lang.Object ent)
Add an element before the current one

insertHere

public void insertHere(DList list)

appendHere

public void appendHere(java.lang.Object ent)
Add an element after the current one

appendHere

public void appendHere(DList list)

getThis

public java.lang.Object getThis()
Return the current element in the list in sequence

getNext

public java.lang.Object getNext(java.lang.Object argument)
Return an element in the list in sequence satisfying the matching function.