Searched refs:fromIndex (Results 1 - 25 of 36) sorted by relevance

12

/openjdk7/jdk/src/share/classes/javax/swing/event/
H A DTableColumnModelEvent.java55 protected int fromIndex; field in class:TableColumnModelEvent
77 fromIndex = from;
85 /** Returns the fromIndex. Valid for removed or moved events */
86 public int getFromIndex() { return fromIndex; };
/openjdk7/jdk/src/share/classes/java/util/
H A DBitSet.java350 * Checks that fromIndex ... toIndex is a valid range of bit indices.
352 private static void checkRange(int fromIndex, int toIndex) { argument
353 if (fromIndex < 0)
354 throw new IndexOutOfBoundsException("fromIndex < 0: " + fromIndex);
357 if (fromIndex > toIndex)
358 throw new IndexOutOfBoundsException("fromIndex: " + fromIndex +
384 * Sets each bit from the specified {@code fromIndex} (inclusive) to the
388 * @param fromIndex inde
395 flip(int fromIndex, int toIndex) argument
472 set(int fromIndex, int toIndex) argument
516 set(int fromIndex, int toIndex, boolean value) argument
555 clear(int fromIndex, int toIndex) argument
636 get(int fromIndex, int toIndex) argument
699 nextSetBit(int fromIndex) argument
729 nextClearBit(int fromIndex) argument
773 previousSetBit(int fromIndex) argument
811 previousClearBit(int fromIndex) argument
[all...]
H A DAbstractList.java227 * index)} or {@code removeRange(int fromIndex, int toIndex)} is
479 * {@code (fromIndex < 0 || toIndex > size)}
481 * {@code (fromIndex > toIndex)}
483 public List<E> subList(int fromIndex, int toIndex) { argument
485 new RandomAccessSubList<>(this, fromIndex, toIndex) :
486 new SubList<>(this, fromIndex, toIndex));
547 * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive.
549 * This call shortens the list by {@code (toIndex - fromIndex)} elements.
550 * (If {@code toIndex==fromIndex}, this operation has no effect.)
559 * {@code fromIndex}, an
567 removeRange(int fromIndex, int toIndex) argument
618 SubList(AbstractList<E> list, int fromIndex, int toIndex) argument
666 removeRange(int fromIndex, int toIndex) argument
749 subList(int fromIndex, int toIndex) argument
774 RandomAccessSubList(AbstractList<E> list, int fromIndex, int toIndex) argument
778 subList(int fromIndex, int toIndex) argument
[all...]
H A DArrays.java81 * to be sorted extends from the index {@code fromIndex}, inclusive, to
82 * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex},
92 * @param fromIndex the index of the first element, inclusive, to be sorted
95 * @throws IllegalArgumentException if {@code fromIndex > toIndex}
97 * if {@code fromIndex < 0} or {@code toIndex > a.length}
99 public static void sort(int[] a, int fromIndex, int toIndex) { argument
100 rangeCheck(a.length, fromIndex, toIndex);
101 DualPivotQuicksort.sort(a, fromIndex, toIndex - 1);
121 * to be sorted extends from the index {@code fromIndex}, inclusive, to
122 * the index {@code toIndex}, exclusive. If {@code fromIndex
139 sort(long[] a, int fromIndex, int toIndex) argument
179 sort(short[] a, int fromIndex, int toIndex) argument
219 sort(char[] a, int fromIndex, int toIndex) argument
259 sort(byte[] a, int fromIndex, int toIndex) argument
315 sort(float[] a, int fromIndex, int toIndex) argument
371 sort(double[] a, int fromIndex, int toIndex) argument
533 sort(Object[] a, int fromIndex, int toIndex) argument
541 legacyMergeSort(Object[] a, int fromIndex, int toIndex) argument
722 sort(T[] a, int fromIndex, int toIndex, Comparator<? super T> c) argument
731 legacyMergeSort(T[] a, int fromIndex, int toIndex, Comparator<? super T> c) argument
792 rangeCheck(int length, int fromIndex, int toIndex) argument
862 binarySearch(long[] a, int fromIndex, int toIndex, long key) argument
869 binarySearch0(long[] a, int fromIndex, int toIndex, long key) argument
943 binarySearch(int[] a, int fromIndex, int toIndex, int key) argument
950 binarySearch0(int[] a, int fromIndex, int toIndex, int key) argument
1024 binarySearch(short[] a, int fromIndex, int toIndex, short key) argument
1031 binarySearch0(short[] a, int fromIndex, int toIndex, short key) argument
1105 binarySearch(char[] a, int fromIndex, int toIndex, char key) argument
1112 binarySearch0(char[] a, int fromIndex, int toIndex, char key) argument
1186 binarySearch(byte[] a, int fromIndex, int toIndex, byte key) argument
1193 binarySearch0(byte[] a, int fromIndex, int toIndex, byte key) argument
1269 binarySearch(double[] a, int fromIndex, int toIndex, double key) argument
1276 binarySearch0(double[] a, int fromIndex, int toIndex, double key) argument
1360 binarySearch(float[] a, int fromIndex, int toIndex, float key) argument
1367 binarySearch0(float[] a, int fromIndex, int toIndex, float key) argument
1466 binarySearch(Object[] a, int fromIndex, int toIndex, Object key) argument
1473 binarySearch0(Object[] a, int fromIndex, int toIndex, Object key) argument
1567 binarySearch(T[] a, int fromIndex, int toIndex, T key, Comparator<? super T> c) argument
1574 binarySearch0(T[] a, int fromIndex, int toIndex, T key, Comparator<? super T> c) argument
1907 fill(long[] a, int fromIndex, int toIndex, long val) argument
1942 fill(int[] a, int fromIndex, int toIndex, int val) argument
1977 fill(short[] a, int fromIndex, int toIndex, short val) argument
2012 fill(char[] a, int fromIndex, int toIndex, char val) argument
2047 fill(byte[] a, int fromIndex, int toIndex, byte val) argument
2082 fill(boolean[] a, int fromIndex, int toIndex, boolean val) argument
2118 fill(double[] a, int fromIndex, int toIndex,double val) argument
2153 fill(float[] a, int fromIndex, int toIndex, float val) argument
2192 fill(Object[] a, int fromIndex, int toIndex, Object val) argument
[all...]
H A DArrayList.java601 * {@code fromIndex}, inclusive, and {@code toIndex}, exclusive.
603 * This call shortens the list by {@code (toIndex - fromIndex)} elements.
604 * (If {@code toIndex==fromIndex}, this operation has no effect.)
606 * @throws IndexOutOfBoundsException if {@code fromIndex} or
608 * ({@code fromIndex < 0 ||
609 * fromIndex >= size() ||
611 * toIndex < fromIndex})
613 protected void removeRange(int fromIndex, int toIndex) { argument
616 System.arraycopy(elementData, toIndex, elementData, fromIndex,
620 int newSize = size - (toIndex-fromIndex);
953 subList(int fromIndex, int toIndex) argument
958 subListRangeCheck(int fromIndex, int toIndex, int size) argument
974 SubList(AbstractList<E> parent, int offset, int fromIndex, int toIndex) argument
1019 removeRange(int fromIndex, int toIndex) argument
1148 subList(int fromIndex, int toIndex) argument
[all...]
H A DJumboEnumSet.java55 int fromIndex = from.ordinal() >>> 6;
58 if (fromIndex == toIndex) {
59 elements[fromIndex] = (-1L >>> (from.ordinal() - to.ordinal() - 1))
62 elements[fromIndex] = (-1L << from.ordinal());
63 for (int i = fromIndex + 1; i < toIndex; i++)
H A DList.java567 * <tt>fromIndex</tt>, inclusive, and <tt>toIndex</tt>, exclusive. (If
568 * <tt>fromIndex</tt> and <tt>toIndex</tt> are equal, the returned list is
592 * @param fromIndex low endpoint (inclusive) of the subList
596 * (<tt>fromIndex &lt; 0 || toIndex &gt; size ||
597 * fromIndex &gt; toIndex</tt>)
599 List<E> subList(int fromIndex, int toIndex); argument
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/
H A DCellTypeStateList.java46 public CellTypeStateList subList(int fromIndex, int toIndex) { argument
47 return new CellTypeStateList(list.subList(fromIndex, toIndex));
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/utils/
H A DXMLStringDefault.java420 * no smaller than <code>fromIndex</code>, then the index of the first
424 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
427 * position <code>fromIndex</code>, then <code>-1</code> is returned.
429 * There is no restriction on the value of <code>fromIndex</code>. If it
436 * @param fromIndex the index to start the search from.
439 * than or equal to <code>fromIndex</code>, or <code>-1</code>
442 public int indexOf(int ch, int fromIndex) argument
444 return m_str.indexOf(ch, fromIndex);
473 * this.charAt(k) == ch) && (k <= fromIndex)
478 * @param fromIndex th
490 lastIndexOf(int ch, int fromIndex) argument
565 indexOf(String str, int fromIndex) argument
613 lastIndexOf(String str, int fromIndex) argument
[all...]
H A DXMLString.java354 * no smaller than <code>fromIndex</code>, then the index of the first
358 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
361 * position <code>fromIndex</code>, then <code>-1</code> is returned.
363 * There is no restriction on the value of <code>fromIndex</code>. If it
370 * @param fromIndex the index to start the search from.
373 * than or equal to <code>fromIndex</code>, or <code>-1</code>
376 public abstract int indexOf(int ch, int fromIndex); argument
401 * this.charAt(k) == ch) && (k <= fromIndex)
406 * @param fromIndex the index to start the search from. There is no
407 * restriction on the value of <code>fromIndex</cod
418 lastIndexOf(int ch, int fromIndex) argument
484 indexOf(String str, int fromIndex) argument
526 lastIndexOf(String str, int fromIndex) argument
[all...]
/openjdk7/jdk/test/java/util/Arrays/
H A DSorting.java111 failed("Arrays.sort(int[],fromIndex,toIndex) shouldn't " +
130 failed("Arrays.sort(long[],fromIndex,toIndex) shouldn't " +
149 failed("Arrays.sort(short[],fromIndex,toIndex) shouldn't " +
168 failed("Arrays.sort(char[],fromIndex,toIndex) shouldn't " +
187 failed("Arrays.sort(byte[],fromIndex,toIndex) shouldn't " +
206 failed("Arrays.sort(float[],fromIndex,toIndex) shouldn't " +
225 failed("Arrays.sort(double[],fromIndex,toIndex) shouldn't " +
238 int fromIndex = m;
241 prepareSubArray(golden, fromIndex, toIndex, m);
249 sortSubArray(convertedTest, fromIndex, toInde
545 prepareSubArray(int[] a, int fromIndex, int toIndex, int m) argument
740 writeValue(float[] a, float value, int fromIndex, int count) argument
766 writeValue(double[] a, double value, int fromIndex, int count) argument
1525 sortSubArray(Object object, int fromIndex, int toIndex) argument
1548 checkSubArray(Object object, int fromIndex, int toIndex, int m) argument
1571 checkSubArray(Integer[] a, int fromIndex, int toIndex, int m) argument
1593 checkSubArray(int[] a, int fromIndex, int toIndex, int m) argument
1615 checkSubArray(byte[] a, int fromIndex, int toIndex, int m) argument
1637 checkSubArray(long[] a, int fromIndex, int toIndex, int m) argument
1659 checkSubArray(char[] a, int fromIndex, int toIndex, int m) argument
1681 checkSubArray(short[] a, int fromIndex, int toIndex, int m) argument
1703 checkSubArray(float[] a, int fromIndex, int toIndex, int m) argument
1725 checkSubArray(double[] a, int fromIndex, int toIndex, int m) argument
[all...]
/openjdk7/jdk/src/share/classes/java/lang/
H A DString.java1492 * object at an index no smaller than <code>fromIndex</code>, then
1497 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> &gt;= fromIndex)
1502 * (this.codePointAt(<i>k</i>) == ch) && (<i>k</i> &gt;= fromIndex)
1505 * string at or after position <code>fromIndex</code>, then
1509 * There is no restriction on the value of <code>fromIndex</code>. If it
1519 * @param fromIndex the index to start the search from.
1522 * than or equal to <code>fromIndex</code>, or <code>-1</code>
1525 public int indexOf(int ch, int fromIndex) { argument
1527 if (fromIndex < 0) {
1528 fromIndex
1552 indexOfSupplementary(int ch, int fromIndex) argument
1628 lastIndexOf(int ch, int fromIndex) argument
1648 lastIndexOfSupplementary(int ch, int fromIndex) argument
1697 indexOf(String str, int fromIndex) argument
1715 indexOf(char[] source, int sourceOffset, int sourceCount, char[] target, int targetOffset, int targetCount, int fromIndex) argument
1788 lastIndexOf(String str, int fromIndex) argument
1806 lastIndexOf(char[] source, int sourceOffset, int sourceCount, char[] target, int targetOffset, int targetCount, int fromIndex) argument
[all...]
H A DStringBuffer.java529 public synchronized int indexOf(String str, int fromIndex) { argument
531 str.toCharArray(), 0, str.length(), fromIndex);
547 public synchronized int lastIndexOf(String str, int fromIndex) { argument
549 str.toCharArray(), 0, str.length(), fromIndex);
H A DStringBuilder.java378 public int indexOf(String str, int fromIndex) { argument
380 str.toCharArray(), 0, str.length(), fromIndex);
393 public int lastIndexOf(String str, int fromIndex) { argument
395 str.toCharArray(), 0, str.length(), fromIndex);
/openjdk7/jdk/src/share/classes/javax/swing/
H A DDefaultListModel.java523 * <code>fromIndex &gt; toIndex</code>.
525 * @param fromIndex the index of the lower end of the range
529 public void removeRange(int fromIndex, int toIndex) { argument
530 if (fromIndex > toIndex) {
531 throw new IllegalArgumentException("fromIndex must be <= toIndex");
533 for(int i = toIndex; i >= fromIndex; i--) {
536 fireIntervalRemoved(this, fromIndex, toIndex);
/openjdk7/jaxp/src/com/sun/org/apache/xpath/internal/objects/
H A DXString.java660 * no smaller than <code>fromIndex</code>, then the index of the first
664 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
667 * position <code>fromIndex</code>, then <code>-1</code> is returned.
669 * There is no restriction on the value of <code>fromIndex</code>. If it
676 * @param fromIndex the index to start the search from.
679 * than or equal to <code>fromIndex</code>, or <code>-1</code>
682 public int indexOf(int ch, int fromIndex) argument
684 return str().indexOf(ch, fromIndex);
713 * this.charAt(k) == ch) && (k <= fromIndex)
718 * @param fromIndex th
730 lastIndexOf(int ch, int fromIndex) argument
805 indexOf(String str, int fromIndex) argument
853 lastIndexOf(String str, int fromIndex) argument
[all...]
H A DXStringForFSB.java687 * no smaller than <code>fromIndex</code>, then the index of the first
691 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> >= fromIndex)
694 * position <code>fromIndex</code>, then <code>-1</code> is returned.
696 * There is no restriction on the value of <code>fromIndex</code>. If it
703 * @param fromIndex the index to start the search from.
706 * than or equal to <code>fromIndex</code>, or <code>-1</code>
709 public int indexOf(int ch, int fromIndex) argument
715 if (fromIndex < 0)
717 fromIndex = 0;
719 else if (fromIndex >
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/ior/
H A DFreezableList.java136 public List subList(int fromIndex, int toIndex) argument
138 List list = delegate.subList(fromIndex, toIndex) ;
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/lib/
H A DExsltStrings.java210 int fromIndex = 0;
214 while (!done && fromIndex < str.length())
216 matchIndex = str.indexOf(pattern, fromIndex);
219 token = str.substring(fromIndex, matchIndex);
220 fromIndex = matchIndex + pattern.length();
225 token = str.substring(fromIndex);
/openjdk7/jdk/test/java/lang/String/
H A DSupplementary.java37 test4(); // Test for indexOf(int ch, int fromIndex)
39 test6(); // Test for lastIndexOf(int ch, int fromIndex)
163 * test4(): for indexOf(int ch, int fromIndex)
165 * test6(): for lastIndexOf(int ch, int fromIndex)
174 * the golden data for indexOf(int ch, int fromIndex)
177 * the golden data for lastIndexOf(int ch, int fromIndex)
219 * Test for indexOf(int ch, int fromIndex) method
230 int fromIndex = 0;
232 fromIndex = testIndexOf(s, fromIndex, c
614 testIndexOf(String s, int fromIndex, int c, int expected) argument
625 testLastIndexOf(String s, int fromIndex, int c, int expected) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/java/util/jar/pack/
H A DFixedList.java165 public List<E> subList(int fromIndex, int toIndex) { argument
166 return flist.subList(fromIndex, toIndex);
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DCopyOnWriteArrayList.java542 * <tt>fromIndex</tt>, inclusive, and <tt>toIndex</tt>, exclusive.
544 * This call shortens the list by <tt>(toIndex - fromIndex)</tt> elements.
545 * (If <tt>toIndex==fromIndex</tt>, this operation has no effect.)
547 * @param fromIndex index of first element to be removed
549 * @throws IndexOutOfBoundsException if fromIndex or toIndex out of range
550 * ({@code{fromIndex < 0 || toIndex > size() || toIndex < fromIndex})
552 private void removeRange(int fromIndex, int toIndex) { argument
559 if (fromIndex < 0 || toIndex > len || toIndex < fromIndex)
1077 subList(int fromIndex, int toIndex) argument
1116 COWSubList(CopyOnWriteArrayList<E> list, int fromIndex, int toIndex) argument
1250 subList(int fromIndex, int toIndex) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/management/remote/
H A DJMXServiceURL.java608 private static int indexOf(String s, char c, int fromIndex) { argument
609 int index = s.indexOf(c, fromIndex);
617 int fromIndex) {
619 int i = fromIndex;
616 indexOfFirstNotInSet(String s, BitSet set, int fromIndex) argument
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/
H A DXML11DocumentScannerImpl.java215 int fromIndex = 0;
216 if (c == quote && (fromIndex = isUnchangedByNormalization(value)) == -1) {
227 normalizeWhitespace(value, fromIndex);
506 protected void normalizeWhitespace(XMLString value, int fromIndex) { argument
508 for (int i = value.offset + fromIndex; i < end; ++i) {
/openjdk7/jdk/src/share/classes/sun/awt/util/
H A DIdentityArrayList.java491 * <tt>fromIndex</tt>, inclusive, and <tt>toIndex</tt>, exclusive.
493 * This call shortens the list by <tt>(toIndex - fromIndex)</tt> elements.
494 * (If <tt>toIndex==fromIndex</tt>, this operation has no effect.)
496 * @param fromIndex index of first element to be removed
498 * @throws IndexOutOfBoundsException if fromIndex or toIndex out of
499 * range (fromIndex &lt; 0 || fromIndex &gt;= size() || toIndex
500 * &gt; size() || toIndex &lt; fromIndex)
502 protected void removeRange(int fromIndex, int toIndex) { argument
505 System.arraycopy(elementData, toIndex, elementData, fromIndex,
[all...]

Completed in 108 milliseconds

12