December 24, 2018

How to use default methods and and or, to compose new BiPredicate implementations from other BiPredicates in java

In BiPredicate Part 1 , we learnt about using test and negate functions. In this article we will use default methods and and or methods to compose BiPredicates, which can perform all the tests of composing BiPredicates. Our use case is to create a system, which helps HR personnel to identify potential candidates for hiring. We will check for three […]

Read more
December 23, 2018

How to use or implement test and negate methods in java.util.function.BiPredicate in java

We have Functional Interfaces in java, which returns a boolean-value after operating on it’s inputs. BiPredicate is one of those Functional interfaces, which returns a boolean value. It has four functions in it’s definition. Three of them are default and one is abstract and it is called test. boolean test( T input1, U input2) :- It returns a […]

Read more