Overview In Java functional programming, Consumers are incredibly versatile and valuable, particularly when it comes to performing actions on data without returning values. Why use Consumers? Here are the main […]
Java Predicate & BiPredicate Tutorial
Overview The predicate interfaces in the java.util.function package return a boolean given one or some arguments. The primary purpose of the Predicate interface is to simplify the task of evaluating […]
Java BinaryOperator Functional Interface Tutorial
Overview Java BinaryOperator is a functional interface extending BiFunction. As you may recall, BiFunction has one abstract method called apply that accepts two arguments and returns a result. A BinaryOperator […]
Java BiFunction Tutorial
Overview In Java, A BiFunction represents a function that accepts two arguments and returns a result. The interface has one abstract method apply and one default method andThen. The apply […]
Java BiConsumer Functional Interface Tutorial
Overview The BiConsumer is a part of the java.util.function package. As the name suggest, this interface is a Consumer. That means it takes input arguments and returns void. Practical use […]
Java Fork/Join Framework File Downloading Examples
Overview of the Fork/Join Framework in Java The Fork/Join framework in Java is an example of the divide and conquer strategy. It is best used for scenarios where you have […]