org.biojava.bio.structure
Class GroupIterator

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

public class GroupIterator
extends Object
implements Iterator

an iterator over all groups of a structure


Constructor Summary
GroupIterator(Structure struct)
           
 
Method Summary
 Object clone()
          Creates and returns a copy of this object.
 boolean hasNext()
          is there a group after the current one in the structure?
 Object next()
           
 void remove()
          does nothing
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupIterator

public GroupIterator(Structure struct)
Method Detail

clone

public Object clone()
Creates and returns a copy of this object.


hasNext

public boolean hasNext()
is there a group after the current one in the structure?

Specified by:
hasNext in interface Iterator

next

public Object next()
            throws NoSuchElementException
Specified by:
next in interface Iterator
Throws:
NoSuchElementException

remove

public void remove()
does nothing

Specified by:
remove in interface Iterator