code: public static <T> Function<T, Boolean> function(Predicate<T> adaptee) {
          dbc.precondition(adaptee != null, "cannot adapt a null predicate");
          return adaptee::test;
      }
docs: Adapts a predicate to a function.
  
  @param <T> the predicate parameter type
  @param adaptee the predicate to be adapted
  @return the adapted function