edu.wisc.ssec.mcidasv.util.trie
Class PatriciaTrie.SingletonIterator

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.util.trie.PatriciaTrie.SingletonIterator
All Implemented Interfaces:
Iterator<Map.Entry<K,V>>
Enclosing class:
PatriciaTrie<K,V>

private class PatriciaTrie.SingletonIterator
extends Object
implements Iterator<Map.Entry<K,V>>

An iterator that stores a single TrieEntry.


Field Summary
private  PatriciaTrie.TrieEntry<K,V> entry
           
private  int hit
           
 
Constructor Summary
PatriciaTrie.SingletonIterator(PatriciaTrie.TrieEntry<K,V> entry)
           
 
Method Summary
 boolean hasNext()
           
 Map.Entry<K,V> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entry

private final PatriciaTrie.TrieEntry<K,V> entry

hit

private int hit
Constructor Detail

PatriciaTrie.SingletonIterator

public PatriciaTrie.SingletonIterator(PatriciaTrie.TrieEntry<K,V> entry)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Map.Entry<K,V>>

next

public Map.Entry<K,V> next()
Specified by:
next in interface Iterator<Map.Entry<K,V>>

remove

public void remove()
Specified by:
remove in interface Iterator<Map.Entry<K,V>>