Lambdas
-
Core Java
Benchmark: How Java 8 Lambdas and Streams Can Make Your Code 5 Times Slower
How Java 8 lambdas and streams perform compared to longstanding implementations? Lambda expressions and streams received an heartwarming welcome in…
Read More » -
Core Java
The Danger of Subtype Polymorphism Applied to Tuples
Java 8 has lambdas and streams, but no tuples, which is a shame. This is why we have implemented tuples…
Read More » -
Core Java
How and Why to Serialize Lambdas
Overview Serializing lambdas can be useful in a number of use cases such as persisting configuration, or as a visitor…
Read More » -
Core Java
More compact Mockito with Java 8, lambda expressions and Mockito-Java8 add-ons
Mockito-Java8 is a set of Mockito add-ons leveraging Java 8 and lambda expressions to make mocking with Mockito even more…
Read More » -
Core Java
Exceptions in Lambdas: An Elegant Solution to a Bit of a Mess
Consider the following function for writing to a file: The idea behind the method is to allow the user to…
Read More » -
Core Java
Cheating with Exceptions – Java 8 Lambdas
Cheating with Exceptions – Java 8 Lambdas Leaving aside the religious debate about Checked vs Runtime exceptions, there are times…
Read More » -
Core Java
Java 8 Lambdas in One Line
If you understand this line, or better still can write this code you can pretty much say that you have…
Read More » -
Core Java
Yet another Java 8 Lamdbas and Streams example
I’ve been lagging behind with what Java 8 features exercising concerns, so in this post I will briefly present my initial…
Read More » -
Core Java
Java 8 Lambda Expressions Tutorial
Greetings! :) After a few months away I decided to come back in style :). I noticed that one of…
Read More »