@NotNull
    public static LongStream of(@NotNull PrimitiveIterator.OfLong iterator) {
        Objects.requireNonNull(iterator);
        return new LongStream(iterator);
    }
@ NotNull public static LongStream of ( @ NotNull PrimitiveIterator . OfLong iterator ) { Objects . requireNonNull ( iterator ) ; return new LongStream ( iterator ) ; }
Creates a {@code LongStream} from {@code PrimitiveIterator.OfLong}.

@param iterator  the iterator with elements to be passed to stream
@return the new {@code LongStream}
@throws NullPointerException if {@code iterator} is null