- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for nextIndex (0.06 sec)
-
guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
} }; Stimulus<E, ListIterator<E>> nextIndex = new Stimulus<E, ListIterator<E>>("nextIndex") { @Override void executeAndCompare(ListIterator<E> reference, ListIterator<E> target) { assertEquals(reference.nextIndex(), target.nextIndex()); } }; Stimulus<E, ListIterator<E>> previousIndex =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
} }; Stimulus<E, ListIterator<E>> nextIndex = new Stimulus<E, ListIterator<E>>("nextIndex") { @Override void executeAndCompare(ListIterator<E> reference, ListIterator<E> target) { assertEquals(reference.nextIndex(), target.nextIndex()); } }; Stimulus<E, ListIterator<E>> previousIndex =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 20.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TransformedListIterator.java
} @Override @ParametricNullness public final T previous() { return transform(backingIterator().previous()); } @Override public final int nextIndex() { return backingIterator().nextIndex(); } @Override public final int previousIndex() { return backingIterator().previousIndex(); } @Override public void set(@ParametricNullness T element) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Nov 21 21:43:01 UTC 2023 - 2.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/TransformedListIterator.java
} @Override @ParametricNullness public final T previous() { return transform(backingIterator().previous()); } @Override public final int nextIndex() { return backingIterator().nextIndex(); } @Override public final int previousIndex() { return backingIterator().previousIndex(); } @Override public void set(@ParametricNullness T element) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Nov 21 21:43:01 UTC 2023 - 2.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/CartesianList.java
if (list.size() != axes.size()) { return -1; } ListIterator<?> itr = list.listIterator(); int computedIndex = 0; while (itr.hasNext()) { int axisIndex = itr.nextIndex(); int elemIndex = axes.get(axisIndex).indexOf(itr.next()); if (elemIndex == -1) { return -1; } computedIndex += elemIndex * axesSizeProduct[axisIndex + 1]; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 4.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CartesianList.java
if (list.size() != axes.size()) { return -1; } ListIterator<?> itr = list.listIterator(); int computedIndex = 0; while (itr.hasNext()) { int axisIndex = itr.nextIndex(); int elemIndex = axes.get(axisIndex).indexOf(itr.next()); if (elemIndex == -1) { return -1; } computedIndex += elemIndex * axesSizeProduct[axisIndex + 1]; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 4.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
} return array[i++]; } @Override public boolean hasPrevious() { return i > 0; } @Override public int nextIndex() { return i; } @Override public String previous() { if (!hasPrevious()) { throw new NoSuchElementException(); } return array[--i]; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 2.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/Lists.java
} canRemoveOrSet = true; return forwardIterator.previous(); } @Override public int nextIndex() { return reversePosition(forwardIterator.nextIndex()); } @Override @ParametricNullness public T previous() { if (!hasPrevious()) { throw new NoSuchElementException();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsTest.java
ListIterator<String> iterator = list.listIterator(1); assertEquals(1, iterator.nextIndex()); assertEquals("2", iterator.next()); assertEquals("3", iterator.next()); assertEquals("4", iterator.next()); assertEquals(4, iterator.nextIndex()); try { iterator.next(); fail("did not detect end of list"); } catch (NoSuchElementException expected) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
ListIterator<String> iterator = list.listIterator(1); assertEquals(1, iterator.nextIndex()); assertEquals("2", iterator.next()); assertEquals("3", iterator.next()); assertEquals("4", iterator.next()); assertEquals(4, iterator.nextIndex()); try { iterator.next(); fail("did not detect end of list"); } catch (NoSuchElementException expected) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35K bytes - Viewed (0)