The Octet Molecular Representation Framework v0.8.2

net.sf.octet.collection
Interface PaddleWheelIterator


public interface PaddleWheelIterator

An iterator of PaddleWheels, typically used together with a PaddleWheelCollection.

Author:
Richard Apodaca
See Also:
"Iterator Pattern (GoF95)"

Method Summary
 boolean hasNext()
          Returns true if this PaddleWheelIterator has another PaddleWheel that can be iterated, or false otherwise.
 PaddleWheel nextPaddleWheel()
          Returns the next PaddleWheel in the iteration sequence.
 

Method Detail

hasNext

public boolean hasNext()
Returns true if this PaddleWheelIterator has another PaddleWheel that can be iterated, or false otherwise.

Returns:
true if this PaddleWheelIterator has another PaddleWheel that can be iterated, or false otherwise

nextPaddleWheel

public PaddleWheel nextPaddleWheel()
Returns the next PaddleWheel in the iteration sequence.

Returns:
the next PaddleWheel in the iteration sequence
Throws:
NoSuchElementException - if this iterator has no more PaddleWheels

The Octet Molecular Representation Framework v0.8.2