-
Core Java
Roll Your Own Pirate-Elvis Operator
So, Java doesn’t have an Elvis operator (or, as it is more formally known, null coalescing operator or null-safe member…
Read More » -
Core Java
Test Collection Implementations with Guava
I’m currently adding a new feature to LibFX, for which I create some custom collections akin to those from the…
Read More » -
Core Java
Interface Evolution With Default Methods – Part I: Methods
A couple of weeks back we took a detailed look into default methods – a feature introduced in Java 8…
Read More » -
Core Java
Value-Based Classes
In Java 8 some classes got a small note in Javadoc stating they are value-based classes. This includes a link…
Read More » -
Core Java
Everything You Need To Know About Default Methods
So, default methods… yesterday’s news, right? Yes but after a year of use, a lot of facts accumulated and I…
Read More » -
Core Java
How The Decorator Pattern Saved My Day
At work I am dealing with a huge Java code base, which was developed over the course of more than…
Read More » -
Core Java
The Serialization Proxy Pattern
In my last post, I talked about serialization in general. This one is much more focused and presents a single…
Read More » -
Core Java
The Decorator Pattern With Java 8
In a recent post I described how the decorator pattern saved my day. I gave a small code snippet which…
Read More » -
Core Java
Concepts of Serialization
With all this talk about why Optional isn’t serializable and what to do about it (coming up soon), let’s have…
Read More »