This post demonstrates how to clone objects in Java with Generics using Apache Commons Lang ObjectUtils. ObjectUtils [wp_ad_camp_1] ObjectUtils is utility class from Apache Foundation that can be used to clone objects in Java. It is part of a distributable
Java – Read Jar file Manifest
This post demonstrates how to create the Jar file manifest.
Immutable Objects Using Annotation In Groovy
In Groovy, it is possible to create an immutable using the groovy.transform.Immutable annotation. One possible use-case for this is when we want to create a object (with data initialized through the class constructor) that is passed to another application layer (e.g., service) but we don’t want that object modified in that layer.
Run Groovy Without Installing On Windows
This post demonstrates how to temporarily configure Groovy to run on Windows. This is useful when we are unable to add or modify environment variables in Windows due to restrictions.
Kotlin – val versus var
What is the difference between the keywords val and var in Kotlin? If you’re coming from Java, val refers to variable that cannot be updated after it has been assigned a value; while var is the usual writable variable whose value can always be changed by other codes.
Groovy – @Singleton example
This post shows a simple example of Groovy class that uses the @Singleton annot
Kotlin – create static fields and methods
This post demonstrates how to create static class members similar to that of Java. We use Kotlin 1.1 here
Java – Limit Recursive method calls
This post demonstrates how to limit the number of recursive calls to avoid StackOverflowError in Java.
Kotlin – Extension Functions
An Extension Function is a function that is attached to an existing class and are invoked like member functions. For this post, we are using Kotlin 1.1.
PhoneGap – HelloWorld Example via PhoneGap CLI
This post demonstrates how to create a very simple example of PhoneGap application via PhoneGap CLI.