/** * Generates a Stream that traverses a scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the streamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable * * @param coll The scala.collection.Iterable to traverse * @return A Stream view of the collection which, by default, executes sequentially. */ public static <T> Stream<T> stream(scala.collection.Iterable<T> coll) { return StreamSupport.stream(new StepsAnyIterator<T>(coll.iterator()), false); }
/** * Generates a Stream that traverses a scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the streamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable * * @param coll The scala.collection.Iterable to traverse * @return A Stream view of the collection which, by default, executes sequentially. */ public static <T> Stream<T> stream(scala.collection.Iterable<T> coll) { return StreamSupport.stream(new StepsAnyIterator<T>(coll.iterator()), false); }
/** * Generates a Stream that traverses a scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the streamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable * * @param coll The scala.collection.Iterable to traverse * @return A Stream view of the collection which, by default, executes sequentially. */ public static <T> Stream<T> stream(scala.collection.Iterable<T> coll) { return StreamSupport.stream(new StepsAnyIterator<T>(coll.iterator()), false); }
/** * Generates a IntStream that traverses a int-valued scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the intStreamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable. * * @param coll The scala.collection.Iterable to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.Iterable<Integer> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.intStream(new StepsIntIterator(iter), false); }
/** * Generates a LongStream that traverses a long-valued scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the longStreamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable. * * @param coll The scala.collection.Iterable to traverse * @return A LongStream view of the collection which, by default, executes sequentially. */ public static LongStream longStream(scala.collection.Iterable<Long> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.longStream(new StepsLongIterator(iter), false); }
/** * Generates a LongStream that traverses a long-valued scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the longStreamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable. * * @param coll The scala.collection.Iterable to traverse * @return A LongStream view of the collection which, by default, executes sequentially. */ public static LongStream longStream(scala.collection.Iterable<Long> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.longStream(new StepsLongIterator(iter), false); }
/** * Generates a DoubleStream that traverses a double-valued scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the doubleStreamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable. * * @param coll The scala.collection.Iterable to traverse * @return A DoubleStream view of the collection which, by default, executes sequentially. */ public static DoubleStream doubleStream(scala.collection.Iterable<Double> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.doubleStream(new StepsDoubleIterator(iter), false); }
/** * Generates a IntStream that traverses a int-valued scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the intStreamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable. * * @param coll The scala.collection.Iterable to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.Iterable<Integer> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.intStream(new StepsIntIterator(iter), false); }
/** * Generates a LongStream that traverses a long-valued scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the longStreamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable. * * @param coll The scala.collection.Iterable to traverse * @return A LongStream view of the collection which, by default, executes sequentially. */ public static LongStream longStream(scala.collection.Iterable<Long> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.longStream(new StepsLongIterator(iter), false); }
/** * Generates a DoubleStream that traverses a double-valued scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the doubleStreamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable. * * @param coll The scala.collection.Iterable to traverse * @return A DoubleStream view of the collection which, by default, executes sequentially. */ public static DoubleStream doubleStream(scala.collection.Iterable<Double> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.doubleStream(new StepsDoubleIterator(iter), false); }
/** * Generates a IntStream that traverses a int-valued scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the intStreamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable. * * @param coll The scala.collection.Iterable to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.Iterable<Integer> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.intStream(new StepsIntIterator(iter), false); }
/** * Generates a DoubleStream that traverses a double-valued scala.collection.Iterable. * <p> * Only sequential operations will be efficient. * For efficient parallel operation, use the doubleStreamAccumulated method instead, * but note that this creates a copy of the contents of the Iterable. * * @param coll The scala.collection.Iterable to traverse * @return A DoubleStream view of the collection which, by default, executes sequentially. */ public static DoubleStream doubleStream(scala.collection.Iterable<Double> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.doubleStream(new StepsDoubleIterator(iter), false); }