d******e 发帖数: 2265 | 2 meanwhile,看看java 8 lambda, builter pattern, 加上framework/DI混起来是不是更
恶心。
return new Tree.Builder<>(Page::new,
Options::hasDoneCheck,
(b, d) -> d.ifPresent(b::hasDoneCheck))
.nextIf(Optional.of(false),
info -> doCheck(info, placeType),
dupeResults -> new Tree.Builder<>(Page.withResults(
dupeResults),
Options::hasDoneCheck,
... 阅读全帖 |
|