Class ListMerger
java.lang.Object
com.yahoo.vespa.streamingvisitors.ListMerger
A list merger that merges two sorted lists.
- Author:
- Ulf Carlin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<? super T>>
List<T>mergeIntoArrayList
(List<T> l1, List<T> l2) static <T extends Comparable<? super T>>
List<T>mergeIntoArrayList
(List<T> l1, List<T> l2, int maxEntryCount) static <T extends Comparable<? super T>>
voidmergeLinkedLists
(List<T> to, List<T> from, int maxEntryCount)
-
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
-