- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 228 for index (0.05 sec)
-
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
for (int index : new int[] {-1, SIZE}) { assertThrows(IndexOutOfBoundsException.class, () -> aa.get(index)); assertThrows(IndexOutOfBoundsException.class, () -> aa.set(index, 1.0)); assertThrows(IndexOutOfBoundsException.class, () -> aa.lazySet(index, 1.0)); assertThrows(IndexOutOfBoundsException.class, () -> aa.compareAndSet(index, 1.0, 2.0));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 14.5K bytes - Viewed (0) -
guava/src/com/google/common/base/Preconditions.java
throw new IndexOutOfBoundsException(badPositionIndex(index, size, desc)); } return index; } private static String badPositionIndex(int index, int size, String desc) { if (index < 0) { return lenientFormat("%s (%s) must not be negative", desc, index); } else if (size < 0) { throw new IllegalArgumentException("negative size: " + size); } else { // index > size
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Apr 11 11:52:14 UTC 2024 - 52.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Striped.java
/** * Returns the stripe at the specified index. Valid indexes are 0, inclusively, to {@code size()}, * exclusively. * * @param index the index of the stripe to return; must be in {@code [0...size())} * @return the stripe at the specified index */ public abstract L getAt(int index); /** * Returns the index to which the given key is mapped, so that getAt(indexFor(key)) == get(key).
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 10 20:55:18 UTC 2023 - 20.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/LinkedListMultimap.java
int expectedModCount = modCount; NodeIterator(int index) { int size = size(); checkPositionIndex(index, size); if (index >= (size / 2)) { previous = tail; nextIndex = size; while (index++ < size) { previous(); } } else { next = head; while (index-- > 0) { next(); } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 13 14:11:58 UTC 2023 - 27.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableMultiset.java
return (result == null) ? elementSet = new ElementSet() : result; } @WeakOuter private final class ElementSet extends IndexedImmutableSet<E> { @Override E get(int index) { return contents.getKey(index); } @Override public boolean contains(@CheckForNull Object object) { return RegularImmutableMultiset.this.contains(object); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 4.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Bytes.java
return i - start; } } return -1; } @Override public Byte set(int index, Byte element) { checkElementIndex(index, size()); byte oldValue = array[start + index]; // checkNotNull for GWT (do not optimize) array[start + index] = checkNotNull(element); return oldValue; } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 14.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
for (int index : new int[] {-1, SIZE}) { assertThrows(IndexOutOfBoundsException.class, () -> aa.get(index)); assertThrows(IndexOutOfBoundsException.class, () -> aa.set(index, 1.0)); assertThrows(IndexOutOfBoundsException.class, () -> aa.lazySet(index, 1.0)); assertThrows(IndexOutOfBoundsException.class, () -> aa.compareAndSet(index, 1.0, 2.0));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jun 10 19:21:11 UTC 2024 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
} /** * Gets the current value at position {@code i}. * * @param i the index * @return the current value */ public final double get(int i) { return longBitsToDouble(longs.get(i)); } /** * Atomically sets the element at position {@code i} to the given value. * * @param i the index * @param newValue the new value */ public final void set(int i, double newValue) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 04 09:45:04 UTC 2023 - 8K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableList.java
@SuppressWarnings("unchecked") public E get(int index) { return (E) array[index]; } @SuppressWarnings("unchecked") @Override public UnmodifiableListIterator<E> listIterator(int index) { // for performance // The fake cast to E is safe because the creation methods only allow E's return (UnmodifiableListIterator<E>) Iterators.forArrayWithPosition(array, index); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Dec 15 20:19:12 UTC 2023 - 2.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/IndexedImmutableSet.java
} @Override ImmutableList<E> createAsList() { return new ImmutableList<E>() { @Override public E get(int index) { return IndexedImmutableSet.this.get(index); } @Override boolean isPartialView() { return IndexedImmutableSet.this.isPartialView(); } @Override public int size() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 2.1K bytes - Viewed (0)