Opening My Skull
Thursday, May 12, 2022
Maven plugin configuration without editing POM xml
›
Usually maven plug-ins are configured by modifying the POM xml file. For example, in the following configuration POM file is edited to set...
Friday, February 11, 2022
Clean code - Optional comparison
›
Following is an example of writing less verbose and clean code for optional value comparison. This code (isAbc2) avoids unnecessary IF condi...
Thursday, February 11, 2021
Compact code with flatMap for methods returning Optional
›
Compact code with flatMap for methods returning Optional. flatMap() method is available both in Stream and Optional. flatMap method can hel...
Wednesday, February 21, 2018
Git add, commit and push in single command
›
We can replace frequently used multiple git commands like add, commit and push in a single command. Multiple step Git add, commit, push ...
Sunday, November 19, 2017
Serialize & Deserialize exactly same as JAX-RS server
›
The following code sample show a way to serialize and deserialize exactly same as the JAX-RS server. The code used the same MessageBodyRea...
Sunday, August 20, 2017
Java stream: Logging before filter
›
While iterating in Java Streams, we may need to log all the items processed by the stream. Especially when using filter in the stream. We c...
1 comment:
Monday, February 20, 2017
Java 8 stream - GroupingBy sum BigDecimal - summarizingBigDecimal
›
Java 8 stream - GroupingBy and summing a BigDecimal field import java.math.BigDecimal; import java.util.Arrays; import java.util.L...
2 comments:
›
Home
View web version