public class

MergeOrderedLists

extends Object
java.lang.Object
   ↳ com.microstrategy.webapi.utils.MergeOrderedLists

Summary

Public Constructors
MergeOrderedLists()
Public Methods
static <T extends Comparable<T>> List<T> merge(List<T> iList0, List<T> iList1)
merge takes two already ordered lists and merges them into one ordered list in N time.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MergeOrderedLists ()

Public Methods

public static List<T> merge (List<T> iList0, List<T> iList1)

merge takes two already ordered lists and merges them into one ordered list in N time. If input lists are null, then no merge is needed. If both lists are null an empty list is returned. If the input lists are not ordered, then unpredictable results are returned.