Libraries/MicroArrayUtils

From Ratwiki

Jump to: navigation, search

Contents

Overview - J2ME Micro Array Utils

A J2ME package for manipulating arrays. The package consists of one class - ArrayUtils - which contains several static methods. The methods include the means to check if a value is contained within an array, to get the index of a value in an array, to randomly shuffle an array, to merge two arrays into one and to clone an array.

There are three versions of each method - one which accepts int arrays, one which includes double arrays and one which accepts Object arrays. These are the most commonly used types, so to keep the library fairly small only these are supported.

It is possible to perform operations on String[] arrays by casting between String[] and Object[].

More information

See the ArrayUtils javadoc for more information on how to use the package.

Unit Tested - High Quality

All of the methods are extensively unit tested using J2meUnit, although the unit tests are not yet available for download. The library can be used with a good deal of confidence that the behaviour is correct.

Download

File Description Link
Jar file Binary package required containing library. MicroArrayUtils-1.0.0.jar
Source code Source package containing the J2ME source code, build scripts and javadoc MicroArrayUtils-1.0.0-src.zip
Javadoc Javadoc for source code MicroArrayUtils-1.0.0-javadoc.zip

Javadoc

Javadoc is available online here or for download here

Personal tools