/** * Returns a builder for a {@code DoubleStream}. * * @return a stream builder */ public static Builder builder() { return new Streams.DoubleStreamBuilderImpl(); }
/** * Returns a sequential {@code DoubleStream} containing a single element. * * @param t the single element * @return a singleton sequential stream */ public static DoubleStream of(double t) { return StreamSupport.doubleStream(new Streams.DoubleStreamBuilderImpl(t), false); }
/** * Returns a builder for a {@code DoubleStream}. * * @return a stream builder */ public static Builder builder() { return new Streams.DoubleStreamBuilderImpl(); }
/** * Returns a sequential {@code DoubleStream} containing a single element. * * @param t the single element * @return a singleton sequential stream */ public static DoubleStream of(double t) { return StreamSupport.doubleStream(new Streams.DoubleStreamBuilderImpl(t), false); }