-
Notifications
You must be signed in to change notification settings - Fork 0
Home
nobeans edited this page Sep 13, 2010
·
19 revisions
Kobo-commons are helper libraries for Groovy, containing a supplement of standard API, a proposal of new features and so on.
Current features:
-
@Equiv
- If you annotate fields by @Equiv annotation, you can dynamically generate
proper equals() and hashCode() using specified fields.
- If you annotate fields by @Equiv annotation, you can dynamically generate
-
String.tr()
- translation of each character in String
- This feature contributed to Groovy! Now it’s available with Groovy 1.7.3 or later. If you want to use it with Groovy 1.7.2 or previous, you can still use it with kobo-commons.
-
Object.tap()
- You can inspect any object transparently by using tap() method with closure. The usage tap is same as equivalents of the method of perl, or ruby.
-
Sort by Multiple Keys
- You can sort collections, arrays, iterators and maps by multiple keys.
To use you will need:
- Groovy: 1.7+ (http://groovy.codehaus.org/)
To build you will need:
- JDK 6+ (http://java.sun.com/j2se/)
- Gradle 0.8+ (http://www.gradle.org/)
Download the latest jar file from the following:
Just add “kobo-commons-VERSION.jar” you downloaded to a classpath of your products.
Apache License Version 2.0