com.browseengine.bobo.util
Class ListMerger

java.lang.Object
  extended by com.browseengine.bobo.util.ListMerger

public class ListMerger
extends Object

Author:
ymatsuda

Nested Class Summary
static class ListMerger.MergedIterator<T>
           
 
Field Summary
static Comparator<BrowseFacet> FACET_VAL_COMPARATOR
           
 
Method Summary
static
<T> ArrayList<T>
mergeLists(int offset, int count, Iterator<T>[] iterators, Comparator<T> comparator)
           
static
<T> ArrayList<T>
mergeLists(int offset, int count, List<Iterator<T>> iterators, Comparator<T> comparator)
           
static
<T> Iterator<T>
mergeLists(Iterator<T>[] iterators, Comparator<T> comparator)
           
static
<T> Iterator<T>
mergeLists(List<Iterator<T>> iterators, Comparator<T> comparator)
           
static Map<String,FacetAccessible> mergeSimpleFacetContainers(Collection<Map<String,FacetAccessible>> subMaps, BrowseRequest req)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACET_VAL_COMPARATOR

public static final Comparator<BrowseFacet> FACET_VAL_COMPARATOR
Method Detail

mergeLists

public static <T> Iterator<T> mergeLists(Iterator<T>[] iterators,
                                         Comparator<T> comparator)

mergeLists

public static <T> Iterator<T> mergeLists(List<Iterator<T>> iterators,
                                         Comparator<T> comparator)

mergeLists

public static <T> ArrayList<T> mergeLists(int offset,
                                          int count,
                                          Iterator<T>[] iterators,
                                          Comparator<T> comparator)

mergeLists

public static <T> ArrayList<T> mergeLists(int offset,
                                          int count,
                                          List<Iterator<T>> iterators,
                                          Comparator<T> comparator)

mergeSimpleFacetContainers

public static Map<String,FacetAccessible> mergeSimpleFacetContainers(Collection<Map<String,FacetAccessible>> subMaps,
                                                                     BrowseRequest req)


Copyright © 2011. All Rights Reserved.