Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Version 1
-
None
-
None
Description
After looking at various implementations of the 1.4 Collections classes, it looks like jakarta commons-collections has the most going for it--same functionality, well-tested, compatible license.
The downside is the extra jar--there were too many dependencies to rip out just the classes we need, it quickly lost it's value. The jar itself is 508k.
This is the gist of the changes:
-
- java.util.IdentityHashMap -> collections.IdentityMap - Same functionality, both for keys and values wrt equality testing. Same perf.
-
- java.util.LinkedHashMap -> collections.LinkedMap - Same functionality and perf.
-
- java.util.LinkedHashSet -> collections.ListOrderedSet.decorate(new HashSet) - Same functionality and perf.
collections.jar/license.txt live in external/lib and are moved to build/ar/ during the build and dist processes.