fork download
  1. import java.util.stream.Stream;
  2. import java.util.function.Predicate;
  3. import java.util.Optional;
  4.  
  5. class Interesting {
  6. public <T> Optional<? extends Predicate<? super T>> with(Stream<Predicate<Object>> predicates) {
  7. return predicates.reduce(Predicate::or);
  8. }
  9.  
  10. public static void main(String[] args) {}
  11. }
Success #stdin #stdout 0.04s 4386816KB
stdin
Standard input is empty
stdout
Standard output is empty