com.browseengine.bobo.util
Class SearchResultMerger.MergedIterator<T>

java.lang.Object
  extended by com.browseengine.bobo.util.SearchResultMerger.MergedIterator<T>
All Implemented Interfaces:
Iterator<T>
Enclosing class:
SearchResultMerger<T>

public static class SearchResultMerger.MergedIterator<T>
extends Object
implements Iterator<T>


Constructor Summary
SearchResultMerger.MergedIterator(List<Iterator<T>> sources, Comparator<T> comparator)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResultMerger.MergedIterator

public SearchResultMerger.MergedIterator(List<Iterator<T>> sources,
                                         Comparator<T> comparator)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

next

public T next()
Specified by:
next in interface Iterator<T>

remove

public void remove()
Specified by:
remove in interface Iterator<T>


Copyright © 2011. All Rights Reserved.