Java 8
-
Core Java
Using Mockito without static imports with Java 8
How to simplify Mockito usage by removing static imports in Java 8 based projects. Rationale Mockito API is based on…
Read More » -
Core Java
Java 8 Streams API: Grouping and Partitioning a Stream
This post shows how you can use the Collectors available in the Streams API to group elements of a stream…
Read More » -
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
Java 8 Streams: filter and predicate negation
Recently there was an interesting discussion on the use of predicate negation in the .filter method on a stream by…
Read More » -
Core Java
From Arrays to Streams and Back with Java 8
Not long ago we upgraded some Eclipse plug-in projects to Java 8. And never looked back since. Among many other…
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
Wrap around design pattern in java8
Wrap around pattern is not listed in in GOF book but is very useful for problem like below: Loop construct…
Read More » -
Core Java
Java 8 Lambda Expression for Design Patterns – Command Design Pattern
In this blog I would illustrate implementing the command pattern in functional programming style using Java 8 Lambda expressions. The…
Read More » -
Core Java
Comparing Imperative and Functional Algorithms in Java 8
Mario Fusco’s popular tweet impressively shows what the main difference between imperative and functional approaches to similar algorithms really is:…
Read More »