return StreamSupport.intStream(si, false);
@Override default IntStream mapToInt(ToIntFunction<? super T> fn){ Spliterator<T> split = this.spliterator(); IntStream s = (split instanceof Spliterator.OfInt)? StreamSupport.intStream((Spliterator.OfInt)split,false) : StreamSupport.stream(split,false).mapToInt(fn); return s; }
/** * Generates a IntStream that traverses an IndexedSeq of Ints. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The IndexedSeq to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.IndexedSeq<Integer> coll) { return StreamSupport.intStream(new StepsIntIndexedSeq(coll, 0, coll.length()), false); }
/** * Generates a IntStream that traverses int-valued values of a scala.collection.mutable.HashMap. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The mutable.HashMap to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStreamValues(scala.collection.mutable.HashMap<? super Object, Integer> coll) { scala.collection.mutable.HashEntry[] tbl = CollectionInternals.getTable(coll); return StreamSupport.intStream(new StepsIntDefaultHashTableValue(tbl, 0, tbl.length), false); }
/** * Generates a IntStream that traverses a Range. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The Range to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.immutable.Range coll) { return StreamSupport.intStream(new scala.compat.java8.converterImpl.StepsIntRange(coll, 0, coll.length()), false); }
/** * Generates a IntStream that traverses an IndexedSeq of Ints. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The IndexedSeq to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.IndexedSeq<Integer> coll) { return StreamSupport.intStream(new StepsIntIndexedSeq(coll, 0, coll.length()), false); }
/** * Generates a IntStream that traverses int-valued keys of a scala.collection.immutable.HashMap. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The immutable.HashMap to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStreamKeys(scala.collection.immutable.HashMap<Integer, ? super Object> coll) { return StreamSupport.intStream(new StepsIntImmHashMapKey(coll, 0, coll.size()), false); }
/** * Generates a IntStream that traverses int-valued values of a scala.collection.mutable.HashMap. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The mutable.HashMap to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStreamValues(scala.collection.mutable.HashMap<? super Object, Integer> coll) { scala.collection.mutable.HashEntry[] tbl = CollectionInternals.getTable(coll); return StreamSupport.intStream(new StepsIntDefaultHashTableValue(tbl, 0, tbl.length), false); }
/** * Generates a IntStream that traverses int-valued keys of a scala.collection.immutable.HashMap. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The immutable.HashMap to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStreamKeys(scala.collection.immutable.HashMap<Integer, ? super Object> coll) { return StreamSupport.intStream(new StepsIntImmHashMapKey(coll, 0, coll.size()), false); }
/** * Generates a IntStream that traverses a Range. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The Range to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.immutable.Range coll) { return StreamSupport.intStream(new scala.compat.java8.converterImpl.StepsIntRange(coll, 0, coll.length()), false); }
/** * Generates a IntStream that traverses int-valued keys of a scala.collection.mutable.HashMap. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The mutable.HashMap to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStreamKeys(scala.collection.mutable.HashMap<Integer, ?> coll) { scala.collection.mutable.HashEntry[] tbl = CollectionInternals.getTable(coll); return StreamSupport.intStream(new StepsIntHashTableKey(tbl, 0, tbl.length), false); }
/** * Generates a IntStream that traverses a scala.collection.mutable.HashSet of Ints. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The mutable.HashSet to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.mutable.HashSet<Integer> coll) { Object[] tbl = CollectionInternals.getTable(coll); return StreamSupport.intStream(new StepsIntFlatHashTable(tbl, 0, tbl.length), false); }
/** * Generates a IntStream that traverses int-valued values of a scala.collection.immutable.HashMap. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The immutable.HashMap to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStreamValues(scala.collection.immutable.HashMap<? super Object, Integer> coll) { return StreamSupport.intStream(new StepsIntImmHashMapValue(coll, 0, coll.size()), false); }
/** * Generates a IntStream that traverses int-valued keys of a scala.collection.mutable.HashMap. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The mutable.HashMap to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStreamKeys(scala.collection.mutable.HashMap<Integer, ?> coll) { scala.collection.mutable.HashEntry[] tbl = CollectionInternals.getTable(coll); return StreamSupport.intStream(new StepsIntHashTableKey(tbl, 0, tbl.length), false); }
/** * Generates a IntStream that traverses int-valued keys of a scala.collection.immutable.HashMap. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The immutable.HashMap to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStreamKeys(scala.collection.immutable.HashMap<Integer, ? super Object> coll) { return StreamSupport.intStream(new StepsIntImmHashMapKey(coll, 0, coll.size()), false); }
/** * Generates a IntStream that traverses a scala.collection.immutable.Vector of Ints. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The Vector to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.immutable.Vector<Integer> coll) { scala.collection.immutable.Vector erased = (scala.collection.immutable.Vector)coll; return StreamSupport.intStream(new StepsIntVector(erased, 0, coll.length()), false); }
/** * Generates a IntStream that traverses a scala.collection.mutable.HashSet of Ints. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The mutable.HashSet to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.mutable.HashSet<Integer> coll) { Object[] tbl = CollectionInternals.getTable(coll); return StreamSupport.intStream(new StepsIntFlatHashTable(tbl, 0, tbl.length), false); }
/** * Generates a IntStream that traverses a scala.collection.mutable.HashSet of Ints. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The mutable.HashSet to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.mutable.HashSet<Integer> coll) { Object[] tbl = CollectionInternals.getTable(coll); return StreamSupport.intStream(new StepsIntFlatHashTable(tbl, 0, tbl.length), false); }
/** * Generates a IntStream that traverses a scala.collection.immutable.HashSet of Ints. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The immutable.HashSet to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.immutable.HashSet<Integer> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.intStream(new StepsIntImmHashSet(iter, coll.size()), false); }
/** * Generates a IntStream that traverses a scala.collection.immutable.HashSet of Ints. * <p> * Both sequential and parallel operations will be efficient. * * @param coll The immutable.HashSet to traverse * @return A IntStream view of the collection which, by default, executes sequentially. */ public static IntStream intStream(scala.collection.immutable.HashSet<Integer> coll) { scala.collection.Iterator iter = (scala.collection.Iterator)coll.iterator(); return StreamSupport.intStream(new StepsIntImmHashSet(iter, coll.size()), false); }