Core Java
-
Stream-Powered Collections Functionality in JDK 8
This post presents application of JDK 8 – introduced Streams with Collections to more concisely accomplish commonly desired Collections-related functionality.…
Read More » -
Book Review: Mockito Essentials
The subtitle of Sujoy Acharya‘s Mockito Essentials (Packt Publishing, October 2014) is: “A practical guide to get you up and…
Read More » -
How To Process Java Annotations
One of the cool new features of Java 8 is the support for lambda expressions. Lambda expressions lean heavily on…
Read More » -
How to get all Method information under a Class in Java Reflection?
This article is building on my previous post. In this article we will see how can we retrieve Class Related…
Read More » -
Replacing Multiple Conditionals with Polymorphism and Composition
It’s a fairly well known refactoring pattern to replace conditionals with polymorphism. If you’re not familiar with the pattern, you…
Read More » -
Reading/writing compressed and not compressed files in Java
Main reason for this post is trying don’t repeat yourself (DRY) because, often, I fall in the recursive need to…
Read More » -
A persistent KeyValue Server in 40 lines and a sad fact
Advent time again .. picking up Peters well written overview on the uses of Unsafe, i’ll have a short fly-by…
Read More » -
Three Common Methods Generated in Three Java IDEs
In this post, I look at the differences in three “common” methods [equals(Object), hashCode(), and toString()] as generated by NetBeans…
Read More » -
Asynchronous timeouts with CompletableFuture
One day I was rewriting poorly implemented multi-threaded code that was blocking at some point on Future.get(): …
Read More »