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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public AtomIterator(Structure struct)
struct
- a Structure objectpublic AtomIterator(Group g)
g
- a Group objectpublic Chain getCurrentChain()
public int getCurrentModel()
public boolean hasNext()
public Atom next() throws NoSuchElementException
next
in interface Iterator<Atom>
NoSuchElementException
- if there is no atom after the current oneCopyright © 2000–2016 BioJava. All rights reserved.