|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.structure.AtomIterator
public class AtomIterator
an iterator over all atoms of a structure / group.
| Constructor Summary | |
|---|---|
AtomIterator(Group g)
Constructs an AtomIterator object. |
|
AtomIterator(Structure struct)
Constructs an AtomIterator object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtomIterator(Structure struct)
struct - a Structure objectpublic AtomIterator(Group g)
g - a Group object| Method Detail |
|---|
public Chain getCurrentChain()
public int getCurrentModel()
public boolean hasNext()
hasNext in interface Iterator<Atom>
public Atom next()
throws NoSuchElementException
next in interface Iterator<Atom>NoSuchElementException - if there is no atom after the current onepublic void remove()
remove in interface Iterator<Atom>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||