Java 8
-
Core Java
Simplifying nested loops with Java 8 Lambdas
This is just a quick tip for everyone who often has to work with multi dimensional arrays in Java 8…
Read More » -
Core Java
Java 8 Deferred Invocation with Java Util Logging
In the blog post Better Performing Non-Logging Logger Calls in Log4j2, I looked at approaches one can use in Log4j…
Read More » -
Core Java
Java 8: A Type Safe Map Builder Using Alternating Interface Exposure
Expose Your Classes Dynamically When I was a Java newbie, I remember thinking that there should be a way of…
Read More » -
Core Java
Java 8: Declare Private and Protected Methods in Interfaces
When Java 8 was introduced, we could use default methods in interfaces. The main driver for this feature was to…
Read More » -
Core Java
Put Your Java 8 Method References to Work
Method References As we all know by now, we can use Method References, like String::isEmpty, in Java 8 to reference…
Read More » -
Core Java
Grouping, transforming and reduction with Java 8
1. Introduction In this previous post, I wrote about how we can group collections of objects with streams and grouping.…
Read More » -
Core Java
(Ab)using Java 8 FunctionalInterfaces as Local Methods
If you’re programming in more advanced languages like Scala or Ceylon, or even JavaScript, “nested functions” or “local functions” are…
Read More » -
Core Java
Parsing Java 8 Streams Into SQL
When Java 8 was released and people began streaming over all kinds of stuff, it didn’t take long before they…
Read More » -
Core Java
Streaming over Maps with Java 8
In this article I will show you how Speedment Open Source stream efficiently over standard Java maps, expanding the Stream…
Read More »