| Constructor and Description |
|---|
AtomIterator(Group g)
Constructs an AtomIterator object.
|
AtomIterator(Structure struct)
Constructs an AtomIterator object.
|
| Modifier and Type | Method and Description |
|---|---|
Chain |
getCurrentChain()
Get the chain that contains the current atom.
|
int |
getCurrentModel()
Get the model number of the model containing the current atom.
|
boolean |
hasNext()
Is there a next atom ?
|
Atom |
next()
Return next atom.
|
void |
remove()
does nothing.
|
public AtomIterator(Structure struct)
struct - a Structure objectpublic AtomIterator(Group g)
g - a Group objectpublic Chain getCurrentChain()
public int getCurrentModel()
public boolean hasNext()
hasNext in interface java.util.Iterator<Atom>public Atom next() throws java.util.NoSuchElementException
next in interface java.util.Iterator<Atom>java.util.NoSuchElementException - if there is no atom after the current onepublic void remove()
remove in interface java.util.Iterator<Atom>