@ NotNull public static IntStream concat ( @ NotNull final IntStream a , @ NotNull final IntStream b ) { Objects . requireNonNull ( a ) ; Objects . requireNonNull ( b ) ; IntStream result = new IntStream ( new IntConcat ( a . iterator , b . iterator ) ) ; return result . onClose ( Compose . closeables ( a , b ) ) ; }
Creates a lazily concatenated stream whose elements are all the elements of the first stream followed by all the elements of the second stream .