Java 8 Predicate Chain 1. Overview In this quick tutorial, we’ll discuss different ways to chain Predicates in Java 8. 2. Basic Example First, let’s see how to use a simple Predicate to filter a List of names: @Test public void whenFilterList_thenSuccess(){ List<String> names = Arrays.asList(“Adam”, “Alexander”, “John”, “Tom”); List<String>… Continue Reading java-predicate-chain

Custom Thread Pools In Java 8 Parallel Streams 1. Overview Java 8 introduced the concept of Streams as an efficient way of carrying out bulk operations on data. And parallel Streams can be obtained in environments that support concurrency. These streams can come with improved performance – at the cost… Continue Reading java-8-parallel-streams-custom-threadpool