The Octet Molecular Representation Framework v0.8.2

net.sf.octet.collection
Interface BondingSystemIterator


public interface BondingSystemIterator

A BondingSystemIterator provides a mechanism to iterate over a BondingSystemCollection. The code fragment below illustrates a typical use:

 
 BondingSystemCollection systems = ...
 BondingSystemIterator it = systems.iterateBondingSystems();
 
 while (it.hasNext())
 {
   BondingSystem system = it.nextBondingSystem();
 }
 
 

Author:
Richard Apodaca

Method Summary
 boolean hasNext()
          Returns true if another BondingSystem is available for iteration.
 BondingSystem nextBondingSystem()
          Returns the next BondingSystem.
 

Method Detail

hasNext

public boolean hasNext()
Returns true if another BondingSystem is available for iteration.

Returns:
true if another BondingSystem will be iterated; false otherwise

nextBondingSystem

public BondingSystem nextBondingSystem()
Returns the next BondingSystem. Returns null if no BondingSystem can be iterated.

Returns:
the next BondingSystem
Throws:
NoSuchElementException - if this iterator has no more BondingSystems

The Octet Molecular Representation Framework v0.8.2