Package org.biojava.nbio.structure
Class GroupIterator
- java.lang.Object
-
- org.biojava.nbio.structure.GroupIterator
-
-
Constructor Summary
Constructors Constructor Description GroupIterator(Structure struct)Constructs a GroupIterator object over all modelsGroupIterator(Structure struct, int modelNr)Constructs a GroupIterator object over a specific model
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Creates and returns a copy of this object.ChaingetCurrentChain()Get the current Chain.intgetCurrentModel()Get the model number of the current model.booleanhasNext()is there a group after the current one in the structure?Groupnext()get next Group.voidremove()does nothing .
-
-
-
Constructor Detail
-
GroupIterator
public GroupIterator(Structure struct)
Constructs a GroupIterator object over all models- Parameters:
struct- a Structure object
-
GroupIterator
public GroupIterator(Structure struct, int modelNr)
Constructs a GroupIterator object over a specific model- Parameters:
struct- a Structure object
-
-
Method Detail
-
clone
public java.lang.Object clone()
Creates and returns a copy of this object.- Overrides:
clonein classjava.lang.Object
-
hasNext
public boolean hasNext()
is there a group after the current one in the structure?- Specified by:
hasNextin interfacejava.util.Iterator<Group>
-
getCurrentModel
public int getCurrentModel()
Get the model number of the current model.- Returns:
- the number of the model
-
getCurrentChain
public Chain getCurrentChain()
Get the current Chain. Returns null if we are at the end of the iteration.- Returns:
- the Chain of the current position
-
next
public Group next() throws java.util.NoSuchElementException
get next Group.- Specified by:
nextin interfacejava.util.Iterator<Group>- Returns:
- next Group
- Throws:
java.util.NoSuchElementException- ...
-
remove
public void remove()
does nothing .- Specified by:
removein interfacejava.util.Iterator<Group>
-
-