The package allows to work with scalar arrays as usual collections.
The problem with a scalar array Java templates don't support scalar types as generic parameters. Java code working with collection interfaces such as List or Collection is inapplicable for arrays. Some libraries supply methods to work with object array. These methods are generic and built-in types int, boolean, long, short, byte, double, float suffer.
The number of scalar type is small and finite. There are realization of Iterable, Iterator, Collection, and List interfaces for each scalar type. Also the library gives such useful methods as contains and indexOf for objects with Iterable interface only.
Yeah. There is some stupidness because all implementations differ between each other only types and this code has 100% implicit coupling and duplications. But Java has not left other way.
Be the first to post a review of Last Java Collection Library!