/** * Returns a sequential {@code IntStream} containing a single element. * * @param t the single element * @return a singleton sequential stream */ public static IntStream of(int t) { return StreamSupport.intStream(new Streams.IntStreamBuilderImpl(t), false); }
/** * Returns a builder for an {@code IntStream}. * * @return a stream builder */ public static Builder builder() { return new Streams.IntStreamBuilderImpl(); }
/** * Returns a builder for an {@code IntStream}. * * @return a stream builder */ public static Builder builder() { return new Streams.IntStreamBuilderImpl(); }
/** * Returns a sequential {@code IntStream} containing a single element. * * @param t the single element * @return a singleton sequential stream */ public static IntStream of(int t) { return StreamSupport.intStream(new Streams.IntStreamBuilderImpl(t), false); }