org.biojava.bio.structure
Class AtomIterator

java.lang.Object
  extended byorg.biojava.bio.structure.AtomIterator
All Implemented Interfaces:
Iterator

public class AtomIterator
extends Object
implements Iterator

an iterator over all atoms of a structure / group


Constructor Summary
AtomIterator(Group g)
           
AtomIterator(Structure struct)
           
 
Method Summary
 boolean hasNext()
          is there a next atom ?
 Object 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

AtomIterator

public AtomIterator(Structure struct)

AtomIterator

public AtomIterator(Group g)
Method Detail

hasNext

public boolean hasNext()
is there a next atom ?

Specified by:
hasNext in interface Iterator

next

public Object next()
            throws NoSuchElementException
return next atom

Specified by:
next in interface Iterator
Throws:
NoSuchElementException

remove

public void remove()
does nothing

Specified by:
remove in interface Iterator