Class SuggestTree.Iterator

java.lang.Object
com.vividsolutions.jump.util.SuggestTree.Iterator
Enclosing class:
SuggestTree

public class SuggestTree.Iterator extends Object
An iterator over the terms in the tree. The iterator returns the terms in alphabetical order and allows the caller to remove returned terms from the tree during the iteration.
  • Method Details

    • hasNext

      public boolean hasNext()
      Returns true if the iteration has more terms.
      Returns:
      true if the iteration has more terms
    • next

      public SuggestTree.Entry next()
      Returns the next term in the iteration.
      Returns:
      the next term in the iteration
      Throws:
      NoSuchElementException - if the iteration has no more terms