Posted by mkarg
on September 7, 2012 at 6:14 AM PDT
Need to use a generic Range class but don't want to include rather huge all-inclusive libraries? Here is your solution: Simply add eu.headcrashing.treasure-chest:RangeClass as a dependency to your Maven POM descriptor!
I hate adding lots of huge multi-JAR all-purpose common libraries to rather small projects! Huge footprint just for a single class is a side effect of many popular frameworks, unfortunately, due to rather coarse-grained modularity. So I started to publish some of my commons (LPGL'ed) code as single-class self-contained artifacts on The Maven Central Repository.
You simple need a Range class (as the JRE still doesn't contain one and Apache's is numeric-only)? No problem. Here it comes:
Have fun with it, and stay tuned for more of my Maven Central uploads... Next to come is JGoodies
(yes, Swing is still not dead!).
An overview of all my publications can be found on my web site Head Crashing Informatics