Solutionunvalidated
Using this example (Java version 8 or higher): — Stream.of(a, b, c).anyMatch(x -> x == null || x.isEmpty()). Tension: you need to check for both in the predicate. Outcome: if (Stream.of(v.getEmail(), v.getPrinFirstName(), ...).anyMatch(x -> x == null || x.isEmpty())) { throw new BadRequestException("BAD_REQUEST"); }.
a64b1a78-59f8-430f-809d-8f88f0673f66
Using this example (Java version 8 or higher): — Stream.of(a, b, c).anyMatch(x -> x == null || x.isEmpty()). Tension: you need to check for both in the predicate. Outcome: if (Stream.of(v.getEmail(), v.getPrinFirstName(), ...).anyMatch(x -> x == null || x.isEmpty())) { throw new BadRequestException("BAD_REQUEST"); }.