| Reporter: |
|
Julius Davies |
| Created: |
|
Fri, 16 May 2008 21:48:50 -0700 (PDT) |
| Updated: |
|
Wed, 21 May 2008 13:31:12 -0700 (PDT) |
| Key: |
|
COLLECTIONS-296 |
| Versions: |
|
Not provided |
| Environment: |
|
|
| Priority: |
|
4 |
| Status: |
|
Open |
| Resolution: |
|
Unresolved |
| Original Link: |
|
http://issues.apache.org/jira/browse/COLLECTIONS-296 |
| Summary: |
|
Introduce SortedUtils.merge() for merging sorted collections |
Description:
Is there any interest in this?
<p> /**</p>
<ul>
<li>Returns a new ArrayList where sorted Collection a and sorted Collection b</li>
<li>are combined such that ordering of the elements according to</li>
<li>Comparator c is retained. Uses the standard O<img class="emoticon" src="
https://issues.apache.org/jira/images/icons/emoticons/thumbs_down.gif" height="19" width="19" align="absmiddle" alt="" border="0"/> merge algorithm</li>
<li>for combining two sorted lists.
*</li>
<li>@param a Object to combine with sorted Collection b. Must implement Comparable.</li>
<li>@param b Sorted Collection to combine with Object a.</li>
<li>@param c Comparator by which Collection a and Collection b have been sorted, or null</li>
<li>if the Collections are sorted according to their natural ordering.</li>
<li>@return a new sorted ArrayList
*/
public static ArrayList merge(Collection a, Collection b, Comparator c);</li>
</ul>
Comments:
| juliusdavies |
Fri, 16 May 2008 21:49:35 -0700 (PDT) |
| julien ayme |
Mon, 19 May 2008 04:28:40 -0700 (PDT) |
| juliusdavies |
Mon, 19 May 2008 22:00:02 -0700 (PDT) |
| julien ayme |
Tue, 20 May 2008 06:46:24 -0700 (PDT) |
| juliusdavies |
Wed, 21 May 2008 13:31:12 -0700 (PDT) |