Home Open-Source

happy-commons

org.happy.commons

happy-commons is a java-library, which is building the basement for our software development. It contains many innovative concepts and design patterns!

Version 1.0 is now published!

 

 

Features:

License: Apache License Version 2.0

Read more...

 

happy-collections

org.happy.collections

The happy-collections extends JDK java.collections, but also very well known collections from Google and Appache. 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.

 

Version 1.0 is now published!

Features:

  • Eventbased - if a collection is modified, the registered event will be fired
  • Unmodifieable - you can decorate the collection, list, set, map by allowing for example only add new elements but nor removing any existing elements.
  • SortedList - the decorator which decorates java.util.List to be sorted. Thus the list stays always sorted. There are two strategies implemented: (1) Linked and (2) Binary-Search. The Sorted List can increase the performance of the java.util.List dramatically (more than 20 times), see example section!
  • Cache - this Decorator caches the often used elements and improves this way the performance of Collection.contains() method (see benchmark results).

License: Apache License Version 2.0

Read more...

Features:

  • ParallelFor/ParallelForEach- well known parallel constructs are improved by having more execution-control and implemented by using Fork/Join Frameworks of Doug Lea 
  • Delegate - is encapsulated to a class and can be compared to the .NET delegate language construct from C#.
  • Version Design Pattern - Old components will be supported by new version of the software. The new version of the component supports the old API and projects it to the new API.

Lizenz: Appache License Version 2.0