JAVA

Using java.util.stream.Collector JAVA

Using java.util.stream.Collector

You will find plenty of articles on how to create your own Collector, and calling Streams.collect() with a collector to gather the data into a collection. Learn how to add a Collector interface to your code in order to make a collection.
Java’s missing TreeMap JAVA

Java’s missing TreeMap

One thing I have always found lacking in Java collections/containers is TreeMap. A simple class that takes a hierarchical approach to mapping data to a node.  Given a hierarchical string like "/java/myapp/javafx/config/phone" I can set the va…
JavaFx Maven Docker Image Docker

JavaFx Maven Docker Image

Recently when setting up a Jenkins build environment to use a Docker Image with Maven that could build a JavaFX project.  Thanks to some searching and a bit of hunting I was able to create a Docker image to perform just what I needed: OpenJDK…
UnitOfTime – Measure and convert you milliseconds JAVA

UnitOfTime – Measure and convert you…

Continuing my series on advanced classes that are handy to have around when needed.  I have created the UnitOfTime.  This class is used to convert a number of milliseconds over to a more understandable period of time. /***********************…
UnitOfMemory – Measure and convert you bytes JAVA

UnitOfMemory – Measure and convert you bytes

Not very often do I need to take a number of bytes and convert them into the most appropriate measurement.  This came up recently on a project and I thought it would be nice to just create a class to handle this for me.  So I created UnitOfMe…