- Sort Score
- Result 10 results
- Languages All
Results 81 - 89 of 89 for IndexOutOfBoundsException (0.33 sec)
-
android/guava/src/com/google/common/collect/Iterables.java
* {@code NoSuchElementException} if out of bounds) * * @param position position of the element to return * @return the element at the specified position in {@code iterable} * @throws IndexOutOfBoundsException if {@code position} is negative or greater than or equal to * the size of {@code iterable} */ @ParametricNullness public static <T extends @Nullable Object> T get(Iterable<T> iterable, int position) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 16 18:35:28 UTC 2025 - 43.8K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
public boolean isEmpty() { return end == start; } /** * Returns the {@code long} value present at the given index. * * @throws IndexOutOfBoundsException if {@code index} is negative, or greater than or equal to * {@link #length} */ public long get(int index) { Preconditions.checkElementIndex(index, length()); return array[start + index];
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 14:49:24 UTC 2025 - 22K bytes - Viewed (0) -
guava/src/com/google/common/primitives/ImmutableIntArray.java
public boolean isEmpty() { return end == start; } /** * Returns the {@code int} value present at the given index. * * @throws IndexOutOfBoundsException if {@code index} is negative, or greater than or equal to * {@link #length} */ public int get(int index) { Preconditions.checkElementIndex(index, length()); return array[start + index];
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 14:49:24 UTC 2025 - 21.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/ArrayMap.java
public Entry<K, V> next() { try { final Entry<K, V> n = listTable[current]; last = current++; return n; } catch (final IndexOutOfBoundsException e) { throw new NoSuchElementException("current=" + current); } } @Override public void remove() { assertState(last != -1, "last == -1");
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 20.1K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
char low = version.charAt(i + 1); char[] both = {character, low}; c = Character.codePointAt(both, 0); i++; } catch (IndexOutOfBoundsException ex) { // high surrogate without low surrogate. Not a lot we can do here except treat it as a regular // character } }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 26.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/LinkedListMultimap.java
* depending on which is closer to the specified index. This allows adds to the tail to be done * in constant time. * * @throws IndexOutOfBoundsException if index is invalid */ ValueForKeyIterator(@ParametricNullness K key, int index) { KeyList<K, V> keyList = keyToKeyList.get(key); int size = (keyList == null) ? 0 : keyList.count;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 27K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BooleansTest.java
assertThat(list.set(0, true)).isFalse(); assertThat(list.set(0, false)).isTrue(); assertThrows(NullPointerException.class, () -> list.set(0, null)); assertThrows(IndexOutOfBoundsException.class, () -> list.set(1, true)); } public void testAsListCanonicalValues() { List<Boolean> list = Booleans.asList(true, false); assertThat(list.get(0)).isSameInstanceAs(true);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 25.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
* | `http://host/?a=apple&b` | `"a"` | `"b"` | */ fun queryParameterName(index: Int): String { if (queryNamesAndValues == null) throw IndexOutOfBoundsException() return queryNamesAndValues[index * 2]!! } /** * Returns the value of the query parameter at `index`. For example this returns `"apple"` for
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 63.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/FluentIterable.java
* returned). * * @param position position of the element to return * @return the element at the specified position in this fluent iterable * @throws IndexOutOfBoundsException if {@code position} is negative or greater than or equal to * the size of this fluent iterable */ @ParametricNullness public final E get(int position) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 34.7K bytes - Viewed (0)