Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 91 for IndexOutOfBoundsException (0.18 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java

       * call to {@link #next()} will return the element at that index, if available. Calls to {@link
       * #previous()} can retrieve the preceding {@code position} elements.
       *
       * @throws IndexOutOfBoundsException if {@code position} is negative or is greater than {@code
       *     size}
       * @throws IllegalArgumentException if {@code size} is negative
       */
      protected AbstractIndexedListIterator(int size, int position) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/ArrayTable.java

       * @throws IndexOutOfBoundsException if either index is negative, {@code rowIndex} is greater than
       *     or equal to the number of allowed row keys, or {@code columnIndex} is greater than or equal
       *     to the number of allowed column keys
       */
      public @Nullable V at(int rowIndex, int columnIndex) {
        // In GWT array access never throws IndexOutOfBoundsException.
        checkElementIndex(rowIndex, rowList.size());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 26.9K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/IterablesTest.java

          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        assertThat(Iterables.get(iterable, 0)).isEqualTo("a");
        assertThat(Iterables.get(iterable, 1)).isEqualTo("b");
        assertThat(Iterables.get(iterable, 2)).isEqualTo("c");
        try {
          Iterables.get(iterable, 3);
          fail();
        } catch (IndexOutOfBoundsException nsee) {
        }
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/escape/UnicodeEscaper.java

       * this method will never fail silently when encountering an invalid surrogate pair.
       *
       * <p>The behaviour of this method is as follows:
       *
       * <ol>
       *   <li>If {@code index >= end}, {@link IndexOutOfBoundsException} is thrown.
       *   <li><b>If the character at the specified index is not a surrogate, it is returned.</b>
       *   <li>If the first character was a high surrogate value, then an attempt is made to read the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 24 04:06:11 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

        assertThat(e.escape("\0HeLLo \uD800\uDC00 WorlD!\n"))
            .isEqualTo("\0HELLO \uD800\uDC00 WORLD!\n");
      }
    
      public void testCodePointAt_indexOutOfBoundsException() {
        assertThrows(
            IndexOutOfBoundsException.class, () -> UnicodeEscaper.codePointAt("Testing...", 4, 2));
      }
    
      private static String escapeAsString(Escaper e, String s) {
        return e.escape(s);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/Bytes.java

       * exclusive. This is equivalent to {@code
       * Collections.reverse(Bytes.asList(array).subList(fromIndex, toIndex))}, but is likely to be more
       * efficient.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
       *     {@code toIndex > fromIndex}
       * @since 23.1
       */
      public static void reverse(byte[] array, int fromIndex, int toIndex) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java

                    return Array.get(value, index);
                }
    
                if (value instanceof List list) {
                    return list.get(index);
                }
            } catch (NumberFormatException | IndexOutOfBoundsException e) {
                return null;
            }
    
            final String message = String.format(
                    "The token '%s' at position '%d' refers to a java.util.List or an array, but the value "
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/net/PercentEscaper.java

      }
    
      /** Escapes the given Unicode code point in UTF-8. */
      @Override
      protected char @Nullable [] escape(int cp) {
        // We should never get negative values here but if we do it will throw an
        // IndexOutOfBoundsException, so at least it will get spotted.
        if (cp < safeOctets.length && safeOctets[cp]) {
          return null;
        } else if (cp == ' ' && plusForSpace) {
          return plusSign;
        } else if (cp <= 0x7F) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 28 01:26:26 GMT 2024
    - 8.6K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/primitives/Booleans.java

       * exclusive. This is equivalent to {@code
       * Collections.reverse(Booleans.asList(array).subList(fromIndex, toIndex))}, but is likely to be
       * more efficient.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
       *     {@code toIndex > fromIndex}
       * @since 23.1
       */
      public static void reverse(boolean[] array, int fromIndex, int toIndex) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Sep 25 15:01:23 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java

                        while (!problems.isEmpty()) {
                            try {
                                return problems.remove(0) != null;
                            } catch (IndexOutOfBoundsException e) {
                                // empty, continue
                            }
                        }
                    }
                }
                return false;
            }
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jul 18 17:30:19 GMT 2025
    - 11.4K bytes
    - Click Count (0)
Back to Top