Lines Matching defs:toIndex

164      * @param toIndex One past the greatest index to cover
171 * {@code toIndex} is less than {@code fromIndex}, or
172 * {@code toIndex} is greater than the array size
175 public static <T> Spliterator<T> spliterator(Object[] array, int fromIndex, int toIndex,
177 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex);
178 return new ArraySpliterator<>(array, fromIndex, toIndex, additionalCharacteristics);
226 * @param toIndex One past the greatest index to cover
233 * {@code toIndex} is less than {@code fromIndex}, or
234 * {@code toIndex} is greater than the array size
237 public static Spliterator.OfInt spliterator(int[] array, int fromIndex, int toIndex,
239 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex);
240 return new IntArraySpliterator(array, fromIndex, toIndex, additionalCharacteristics);
292 * @param toIndex One past the greatest index to cover
299 * {@code toIndex} is less than {@code fromIndex}, or
300 * {@code toIndex} is greater than the array size
303 public static Spliterator.OfLong spliterator(long[] array, int fromIndex, int toIndex,
305 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex);
306 return new LongArraySpliterator(array, fromIndex, toIndex, additionalCharacteristics);
358 * @param toIndex One past the greatest index to cover
365 * {@code toIndex} is less than {@code fromIndex}, or
366 * {@code toIndex} is greater than the array size
369 public static Spliterator.OfDouble spliterator(double[] array, int fromIndex, int toIndex,
371 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex);
372 return new DoubleArraySpliterator(array, fromIndex, toIndex, additionalCharacteristics);