Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

com.arcle.rmt.xplat.util.Iterator Interface Reference

An Iterator interface to provide cross-platform compatibility for a List. More...

List of all members.

Public Member Functions

boolean hasNext ()
 Returns true if the iteration has more elements.


Package Functions

Object next ()
 Returns the next element in the interation.

void remove ()
 Removes from the underlying collection the last element returned by the iterator (optional operation).


Detailed Description

An Iterator interface to provide cross-platform compatibility for a List.

This interface is exactly the same as java.util.Iterator

Definition at line 65 of file Iterator.java.


Member Function Documentation

boolean com.arcle.rmt.xplat.util.Iterator.hasNext  ) 
 

Returns true if the iteration has more elements.

(In other words, returns true if next would return an element rather than throwing an exception.)

Returns:
true if the iterator has more elements.

Referenced by com.arcle.rmt.j2se.swing.vc.ElementEdit.createBottomRow(), com.arcle.rmt.j2se.swing.vc.AbstractElementList.ElementTypeNode.deleteChild(), com.arcle.rmt.j2se.bridge.swexport.SwExportFacade.export(), com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.importFirstClass(), com.arcle.rmt.j2se.swing.vc.ElementEdit.initChildren(), and com.arcle.rmt.j2se.swing.vc.AbstractElementList.loadData().

Object com.arcle.rmt.xplat.util.Iterator.next  )  [package]
 

Returns the next element in the interation.

Returns:
the next element in the iteration.
Exceptions:
NoSuchElementException iteration has no more elements.

Referenced by com.arcle.rmt.j2se.swing.vc.ElementEdit.createBottomRow(), com.arcle.rmt.j2se.swing.vc.AbstractElementList.ElementTypeNode.deleteChild(), com.arcle.rmt.j2se.bridge.swexport.SwExportFacade.export(), com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.importFirstClass(), com.arcle.rmt.j2se.swing.vc.ElementEdit.initChildren(), and com.arcle.rmt.j2se.swing.vc.AbstractElementList.loadData().

void com.arcle.rmt.xplat.util.Iterator.remove  )  [package]
 

Removes from the underlying collection the last element returned by the iterator (optional operation).

This method can be called only once per call to next. The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method.

Exceptions:
UnsupportedOperationException if the remove operation is not supported by this Iterator.
IllegalStateException if the next method has not yet been called, or the remove method has already been called after the last call to the next method.

Referenced by com.arcle.rmt.j2se.swing.vc.AbstractElementList.ElementTypeNode.deleteChild().


The documentation for this interface was generated from the following file:
Generated on Fri Jun 18 19:55:34 2004 for Arcle Rambutan by doxygen 1.3.5