- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
List<Validatable> list = getValues();
...
return list == null || list.stream().reduce(Boolean.TRUE,
(identity, cf) -> identity
&& cf.validate().stream()
.map(ValidationError::getError)
.peek(feedbackPanel::error)
.count() == 0,
(result1, result2) -> result1 && result2);