Package org.biojava.nbio.structure
Class GroupIterator
java.lang.Object
org.biojava.nbio.structure.GroupIterator
An iterator over all groups of a structure.
- Since:
 - 1.4
 - Version:
 - %I% %G%
 - Author:
 - Andreas Prlic
 
- 
Constructor Details
- 
GroupIterator
Constructs a GroupIterator object.- Parameters:
 struct- a Structure object
 
 - 
 - 
Method Details
- 
clone
Creates and returns a copy of this object. - 
hasNext
public boolean hasNext()is there a group after the current one in the structure? - 
getCurrentModel
public int getCurrentModel()Get the model number of the current model.- Returns:
 - the number of the model
 
 - 
getCurrentChain
Get the current Chain. Returns null if we are at the end of the iteration.- Returns:
 - the Chain of the current position
 
 - 
next
get next Group.- Specified by:
 nextin interfaceIterator<Group>- Returns:
 - next Group
 - Throws:
 NoSuchElementException- ...
 - 
remove
public void remove()does nothing . 
 -