src/org/gel/mauve/tree/IstIterator.java

Go to the documentation of this file.
00001 package org.gel.mauve.tree;
00002 
00003 import java.util.Iterator;
00004 
00005 class IstIterator implements Iterator {
00006         IstNode node;
00007 
00008         IntervalSequenceTree ist;
00009 
00010         IstIterator (IntervalSequenceTree ist, IstNode node) {
00011                 this.ist = ist;
00012                 this.node = node;
00013         }
00014 
00015         // Returns true if the iteration has more elements.
00016         public boolean hasNext () {
00017                 return ist.increment (node) != null;
00018         }
00019 
00020         // Returns the next element in the iteration.
00021         public Object next () {
00022                 node = ist.increment (node);
00023                 return node.getKey ();
00024         }
00025 
00026         // Removes from the underlying collection the last element returned by the
00027         // iterator (optional operation).
00028         public void remove () {
00029 
00030         }
00031 }

Generated on Mon Aug 19 06:03:44 2013 for Mauve by doxygen 1.3.6