Skip to main content

Happy-Collections

Posted by zarr on January 7, 2010 at 6:17 AM PST
Project URL

Summary

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.

Community: 

PublishedThe 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.
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(http://www.happy-guys.com/open-source/happy-collections/ver1x0/coverage-...).

    License: 

    Apache License, Version 2.0