nl.vpro.util.StreamUtils Maven / Gradle / Ivy
package nl.vpro.util;
import java.util.Arrays;
import java.util.stream.Stream;
public class StreamUtils {
public static Stream nullToEmpty(C[] array) {
return array == null ? Stream.empty() : Arrays.stream(array);
}
}