com.limegroup.gnutella.util
Class Trie.NodeIterator

java.lang.Object
  extended bycom.limegroup.gnutella.util.UnmodifiableIterator
      extended bycom.limegroup.gnutella.util.Trie.NodeIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
Trie

public class Trie.NodeIterator
extends UnmodifiableIterator


Constructor Summary
Trie.NodeIterator(com.limegroup.gnutella.util.TrieNode start, boolean withNulls)
          Creates a new iterator that yields all the nodes of start and its children that have values (ignoring internal nodes).
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 
Methods inherited from class com.limegroup.gnutella.util.UnmodifiableIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trie.NodeIterator

public Trie.NodeIterator(com.limegroup.gnutella.util.TrieNode start,
                         boolean withNulls)
Creates a new iterator that yields all the nodes of start and its children that have values (ignoring internal nodes).

Method Detail

hasNext

public boolean hasNext()

next

public java.lang.Object next()