@NotNull
    public static LongStream generate(@NotNull final LongSupplier s) {
        Objects.requireNonNull(s);
        return new LongStream(new LongGenerate(s));
    }
@ NotNull public static LongStream generate ( @ NotNull final LongSupplier s ) { Objects . requireNonNull ( s ) ; return new LongStream ( new LongGenerate ( s ) ) ; }
Creates a {@code LongStream} by elements that generated by {@code LongSupplier}.

@param s  the {@code LongSupplier} for generated elements
@return a new infinite sequential {@code LongStream}
@throws NullPointerException if {@code s} is null