Class ListMerger

java.lang.Object
com.yahoo.vespa.streamingvisitors.ListMerger

public class ListMerger extends Object
A list merger that merges two sorted lists.
Author:
Ulf Carlin
  • Constructor Details

    • ListMerger

      public ListMerger()
  • Method Details

    • mergeLinkedLists

      public static <T extends Comparable<? super T>> void mergeLinkedLists(List<T> to, List<T> from, int maxEntryCount)
    • mergeIntoArrayList

      public static <T extends Comparable<? super T>> List<T> mergeIntoArrayList(List<T> l1, List<T> l2, int maxEntryCount)
    • mergeIntoArrayList

      public static <T extends Comparable<? super T>> List<T> mergeIntoArrayList(List<T> l1, List<T> l2)