code: 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());
      }
docs: Adapts a ternary predicate to a predicate accepting a triple.
  
  @param <T> the predicate first parameter type
  @param <U> the predicate second parameter type
  @param <V> the predicate third parameter type
  @param predicate the predicate to be adapted
  @return the adapted predicate