code: public static <T> Function<T, Boolean> forPredicate (final Predicate<T> predicate)
      {
          return new Function<T, Boolean>() {
              public Boolean apply (T arg) {
                  return predicate.apply(arg);
              }
          };
      }
docs: Returns a function that returns the same boolean output as the given predicate for all
  inputs.