simplified testdata

This commit is contained in:
Anna Kozlova
2014-07-02 11:00:54 +02:00
parent a22fa7bd3c
commit 60c18e802f
@@ -3,6 +3,7 @@ package problems;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.function.*;
import static java.util.stream.Collectors.*;
@@ -82,3 +83,32 @@ class Dish {
return name;
}
}
class Test67 {
static {
collectingAndThen(reducing(), Optional::get);
collectingAndThen(reducing(), o -> o.get());
}
static <T> List<Optional<T>> reducing() {
return null;
}
static <R,RR> void collectingAndThen(List<R> downstream, Function<R,RR> finisher){}
}
class Test99 {
{
collectingAndThen(reducing((d1, d2) -> d2), Optional::get);
}
public static <COL, R, RR> void collectingAndThen(Collector<COL, R> downstream, Function<R, RR> finisher) {}
public static <RED> Collector<RED, Optional<RED>> reducing(BinaryOperator<RED> op) {
return null;
}
static class Collector<A, C>{}
}