Hi, long time no see… I really had a lot of work to do, been doing some freelance work in the nighttime and then there’s certainly my family. And apart from that, my current setup for this years projects is working quite well, thanks to Spring Boot and NetBeans for example. Recently i had some […]
Recently i managed to screw up iMessages and FaceTime on my phone. Well, not exactly i screwed up, but Apple did. Some months back i changed my Apple ID but kept the old email address as verified other address in my Apple account. I changed all iCloud settings (Sharing etc.) on all Apple devices because […]
I was looking for a nice solution to measure the code coverage in my Spring Boot biking project. It should support Java 8, Maven and for added bonus, my IDE. I ended up using JaCoCo respectively the Maven plugin. If you expect a lengthier post, i must disappoint you. All that was need to turn […]
I needed a function to sum (and therefor group) the values of a map of objects to Integers. My first solution was something like As you can see, i use the collect method with a custom supplier, accumulator and combiner. The supplier prepares a new map, the accumulator takes the map and an entry and […]
This is cool: Map.Entry#comparingByKey and Map.Entry#comparingByValue. They both take another comparator or lambda that is used as a delegate for creating a Map.Entry comparator, that can be used to sort maps or find maximum and minimum pairs in a map by key or value like in the following example: import java.time.LocalDate; import java.util.Map; import java.util.Random; […]