public static IntStream ofNullable ( int [ ] nullable ) { return null == nullable ? IntStream . empty ( ) : Arrays . stream ( nullable ) ; }
Converts nullable int array into an empty stream and non - null array into a stream .