public static < T , U , V > Predicate < Triple < T , U , V > > tupled ( TriPredicate < T , U , V > predicate ) { dbc . precondition ( predicate != null , "cannot apply a triple to a null predicate" ) ; return triple -> predicate . test ( triple . first ( ) , triple . second ( ) , triple . third ( ) ) ; }
Adapts a ternary predicate to a predicate accepting a triple .