Home
last modified time | relevance | path

Searched refs:toIndex (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DArrays.java149 public static void sort(int[] a, int fromIndex, int toIndex) { in sort() argument
150 rangeCheck(a.length, fromIndex, toIndex); in sort()
151 DualPivotQuicksort.sort(a, fromIndex, toIndex - 1, null, 0, 0); in sort()
189 public static void sort(long[] a, int fromIndex, int toIndex) { in sort() argument
190 rangeCheck(a.length, fromIndex, toIndex); in sort()
191 DualPivotQuicksort.sort(a, fromIndex, toIndex - 1, null, 0, 0); in sort()
229 public static void sort(short[] a, int fromIndex, int toIndex) { in sort() argument
230 rangeCheck(a.length, fromIndex, toIndex); in sort()
231 DualPivotQuicksort.sort(a, fromIndex, toIndex - 1, null, 0, 0); in sort()
269 public static void sort(char[] a, int fromIndex, int toIndex) { in sort() argument
[all …]
DAbstractList.java483 public List<E> subList(int fromIndex, int toIndex) { in subList() argument
485 new RandomAccessSubList<>(this, fromIndex, toIndex) : in subList()
486 new SubList<>(this, fromIndex, toIndex)); in subList()
567 protected void removeRange(int fromIndex, int toIndex) { in removeRange() argument
569 for (int i=0, n=toIndex-fromIndex; i<n; i++) { in removeRange()
618 SubList(AbstractList<E> list, int fromIndex, int toIndex) { in SubList() argument
621 if (toIndex > list.size()) in SubList()
622 throw new IndexOutOfBoundsException("toIndex = " + toIndex); in SubList()
623 if (fromIndex > toIndex) in SubList()
625 ") > toIndex(" + toIndex + ")"); in SubList()
[all …]
DBitSet.java354 private static void checkRange(int fromIndex, int toIndex) { in checkRange() argument
357 if (toIndex < 0) in checkRange()
358 throw new IndexOutOfBoundsException("toIndex < 0: " + toIndex); in checkRange()
359 if (fromIndex > toIndex) in checkRange()
361 " > toIndex: " + toIndex); in checkRange()
397 public void flip(int fromIndex, int toIndex) { in flip() argument
398 checkRange(fromIndex, toIndex); in flip()
400 if (fromIndex == toIndex) in flip()
404 int endWordIndex = wordIndex(toIndex - 1); in flip()
408 long lastWordMask = WORD_MASK >>> -toIndex; in flip()
[all …]
DArrayList.java617 protected void removeRange(int fromIndex, int toIndex) { in removeRange() argument
621 if (toIndex < fromIndex) { in removeRange()
626 int numMoved = size - toIndex; in removeRange()
627 System.arraycopy(elementData, toIndex, elementData, fromIndex, in removeRange()
631 int newSize = size - (toIndex-fromIndex); in removeRange()
978 public List<E> subList(int fromIndex, int toIndex) { in subList() argument
979 subListRangeCheck(fromIndex, toIndex, size); in subList()
980 return new SubList(this, 0, fromIndex, toIndex); in subList()
983 static void subListRangeCheck(int fromIndex, int toIndex, int size) { in subListRangeCheck() argument
986 if (toIndex > size) in subListRangeCheck()
[all …]
DJumboEnumSet.java56 int toIndex = to.ordinal() >>> 6; in addRange() local
58 if (fromIndex == toIndex) { in addRange()
63 for (int i = fromIndex + 1; i < toIndex; i++) in addRange()
65 elements[toIndex] = -1L >>> (63 - to.ordinal()); in addRange()
DSpliterators.java175 public static <T> Spliterator<T> spliterator(Object[] array, int fromIndex, int toIndex, in spliterator() argument
177 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex); in spliterator() local
178 return new ArraySpliterator<>(array, fromIndex, toIndex, additionalCharacteristics); in spliterator()
237 public static Spliterator.OfInt spliterator(int[] array, int fromIndex, int toIndex, in spliterator() argument
239 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex); in spliterator() local
240 return new IntArraySpliterator(array, fromIndex, toIndex, additionalCharacteristics); in spliterator()
303 public static Spliterator.OfLong spliterator(long[] array, int fromIndex, int toIndex, in spliterator() argument
305 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex); in spliterator() local
306 return new LongArraySpliterator(array, fromIndex, toIndex, additionalCharacteristics); in spliterator()
369 public static Spliterator.OfDouble spliterator(double[] array, int fromIndex, int toIndex, in spliterator() argument
[all …]
DVector.java1037 public synchronized List<E> subList(int fromIndex, int toIndex) { in subList() argument
1038 return Collections.synchronizedList(super.subList(fromIndex, toIndex), in subList()
1049 protected synchronized void removeRange(int fromIndex, int toIndex) { in removeRange() argument
1051 int numMoved = elementCount - toIndex; in removeRange()
1052 System.arraycopy(elementData, toIndex, elementData, fromIndex, in removeRange()
1056 int newElementCount = elementCount - (toIndex-fromIndex); in removeRange()
DList.java601 List<E> subList(int fromIndex, int toIndex); in subList() argument
DCollections.java1349 public List<E> subList(int fromIndex, int toIndex) { in subList() argument
1350 return new UnmodifiableList<>(list.subList(fromIndex, toIndex)); in subList()
1382 public List<E> subList(int fromIndex, int toIndex) {
1384 list.subList(fromIndex, toIndex));
2178 public List<E> subList(int fromIndex, int toIndex) {
2180 return new SynchronizedList<>(list.subList(fromIndex, toIndex),
2228 public List<E> subList(int fromIndex, int toIndex) {
2231 list.subList(fromIndex, toIndex), mutex);
2917 public List<E> subList(int fromIndex, int toIndex) {
2918 return new CheckedList<>(list.subList(fromIndex, toIndex), type);
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DJarIndex.java344 public void merge(JarIndex toIndex, String path) { in merge() argument
356 toIndex.add(packageName, jarName); in merge()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DConcurrentModTest.java647 public void removeRange(int fromIndex, int toIndex) { in removeRange() argument
648 super.removeRange(fromIndex, toIndex); in removeRange()