- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for IndexOutOfBoundsException (0.15 sec)
-
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
} public void testGet_bad() { ImmutableLongArray iia = ImmutableLongArray.of(0, 1, 3); assertThrows(IndexOutOfBoundsException.class, () -> iia.get(-1)); assertThrows(IndexOutOfBoundsException.class, () -> iia.get(3)); ImmutableLongArray sub = iia.subArray(1, 2); assertThrows(IndexOutOfBoundsException.class, () -> sub.get(-1)); } public void testIndexOf() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 14:49:24 UTC 2025 - 20.9K bytes - Viewed (0) -
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());Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 26.9K bytes - Viewed (0) -
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: Mon Nov 17 22:50:48 UTC 2025 - 43.6K 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) -
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)