|
The happy-collections is a library, which extends JDK java.collections, but also very well known collections from Google and Appache. org.happy collections is a set of decorators, which can be used for decorating existing Classes which implements the JDK-interfaces java.util.List, java.util.Collection, java.util.Set, java.util.Map.
We developed this library during our research on our main product SDMS. You can use our library for free because it is Open Source Library (Apache License, Version 2.0). We are interested in new ideas and if you have some please join our community and develop the collection library together with us!
Features:
- Event based collections - register events like OnBeforeAddEvent or OnAfterRemoveEvent
- Unmodifiable - you can decorate the collection, list, set, map by allowing for example only add new elements but nor removing any existing
- SortedList- the decorator which decorates java.util.List to be sorted. There are two strategies implemented: (1) Linked and (2) Divide and Conquer. The Sorted List can increase the performance of the List dramatically (more than 20 times), see example section!
- Cache - the decorator for java.util.Collection, java.util.List which caches often used elements and improves the performance of searching of elements in many cases.
Software-Quality
We have created many JUnit-Tests to guaranty high quality:
| line-coverage |
87% |
| branch-coverage |
98% |
-> see the coverage-report.
Happy-Collectionsis an Source-Forge project 
|