JAVA

Pipeline Switches JAVA

Pipeline Switches

One of the things that make pipelines attract is the ability to create switches. Now my question to you is what if it isn't the data your processing that should determine if a switch pushes the data down an alternate pipeline? We have several methods…
Java Pipelines JAVA

Java Pipelines

Java streams introduced a new way to program for developers. Have a dataset and build a stream to filter, it maps it, and then collect it in the new form. This gave developers a powerful tool to use in development and data processing. I can't even be…
Not Returning Null JAVA

Not Returning Null

We all have done it, in fact, I'm in the process of changing my APIs over to not do.  Returning NULL for a return type.  After doing some work with streams, I see that return NULL often adds additional complexity to the code.  In this article, we are…
Java Development Tips JAVA

Java Development Tips

Java-based servers or applications often have to deal with large amounts of data.  Whether the data is from a database, or from a local file, processing this data in an efficient manner is a priority for maintainability. In this article, we will…
Java getter/setter used as Lamda’s JAVA

Java getter/setter used as Lamda’s

Once again I'm looking into ways to make coding so much easier. I needed to be able to pass in a Class::get and a Class:set as a Lamda in order to be able to reuse code across types. It's a rather simple process. However I have not found it really do…
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 various ob…