SortedArrayList and Merge 1.4

SortedArrayList and Merge 1.4

Canadian Mind Products – Freeware
This is a pair of library classes to include in your own
code for manipulating ArrayLists.

It consist of two classes: SortedArrayList and Merge.

SortedArrayList is an ArrayList that remembers how it is
sorted, so that if you ask it to sort, it can sometimes
bypass the work when it is already in order. You declare the
order you want and it keeps the list sorted, You just call
sort whenever you need the list to be in perfect order. It
may or may not actually sort the list at that time. It
automatically avoids physically sorting when it does not
really have to.

Merge lets you merge/prune two SortedArrayLists in any of 32
different ways, e.g. union, intersection, update... It also
lets you dedup and prune individual SortedArrayLists.

They are used extensively as part the replicatorsender
package. Having an look at that code may give you a more
realistic view of what they can do.

To use them, have a look at the source code and the sample
drivers. They don't do anything useful standalone. You must
incorporate them into your own code.

Why the spectrum icon? It represent the colours of light
sorted in order by wavelength.

Overview

SortedArrayList and Merge is a Freeware software in the category Web Development developed by Canadian Mind Products.

The latest version of SortedArrayList and Merge is 1.4, released on 11/14/2014. It was initially added to our database on 11/14/2014.

SortedArrayList and Merge runs on the following operating systems: Windows.

SortedArrayList and Merge has not been rated by our users yet.

FAQ

What is SortedArrayList?

SortedArrayList is a Java class provided by Canadian Mind Products that extends the ArrayList class to maintain elements in sorted order during insertion.

How does SortedArrayList maintain elements in sorted order?

SortedArrayList uses binary search to find the correct position for inserting elements in such a way that the list remains sorted at all times.

Can elements of different types be stored in a SortedArrayList?

No, SortedArrayList stores elements of the same type, as it relies on the natural ordering of elements to keep them sorted.

What happens if an attempt is made to insert a null element into a SortedArrayList?

SortedArrayList does not allow null elements to be inserted, and it will throw a NullPointerException if attempted.

Is SortedArrayList thread-safe?

No, SortedArrayList is not thread-safe by default. If concurrent access is needed, external synchronization mechanisms should be used.

How can elements be retrieved from a SortedArrayList?

Elements can be retrieved using methods like get(int index) or using iterators provided by the ArrayList superclass.

Can elements be removed from a SortedArrayList?

Yes, elements can be removed from a SortedArrayList using methods like remove(int index) or remove(Object obj) based on index or object equality.

Is there a way to customize the sorting criteria in SortedArrayList?

Yes, by providing a custom Comparator implementation during creation, users can define their own sorting criteria instead of relying on natural ordering.

What is Merge by Canadian Mind Products?

Merge by Canadian Mind Products is a utility class that provides static methods for merging two SortedArrayList instances into a single SortedArrayList preserving the order.

Screenshots (Click to view larger)

Download not yet available. Please add one.

Stay up-to-date
with UpdateStar freeware.

Latest Reviews

P Perimeter
Perimeter by Perimeter: A Comprehensive Network Security Solution
Movies Online - HD Movies Online - HD
Stream Your Favorites with Movies Online - HD by Momolike
B BlueKlick
BlueKlick: The Ultimate Social Media Automation Tool
Movies Box Movies Box
Revolutionary Movie Management with Movies Box
E EasyScope II for DS1M12
EasyScope II: A User-Friendly Solution for DS1M12 Users
Movies 32 Movies 32
Movies 32: A Comprehensive Guide to Cinematic Wonders
Current Newsletter