I have 3 Optionals:
Optional<T> optA = getOptA();
Optional<T> optB = getOptB();
Optional<T> optC = getOptC();
Is there a better way to concat them to a Stream<T> than:
Stream.concat(Stream.concat(optA.stream(), optB.stream()), optC.stream());
If the number of optionals grows, this gets unwieldy very soon:
Stream.concat(Stream.concat(optA.stream(), optB.stream()), Stream.concat(optC.stream(), optD.stream());