BiPredicate

BiPredicate

BiPredicate is a functional interface with two input arguments.

Normal Predicate can take only one input argument and perform some conditional check. Sometimes our programming requirement is, we have to take 2 input arguments and perform some additional check, for this requirement we should go for BiPredicate.

Bi Predicate is exactly same as Predicate except that it will take 2 inputs arguments

interface BiPredicate <T1, T2>

{

      public boolean test(T1 t1, T2 t2);

}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...