Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for nextIndex (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testEmptyListIterator() {
        ListIterator<String> iterator = Iterators.emptyListIterator();
        assertFalse(iterator.hasNext());
        assertFalse(iterator.hasPrevious());
        assertEquals(0, iterator.nextIndex());
        assertEquals(-1, iterator.previousIndex());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(NoSuchElementException.class, () -> iterator.previous());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      public void testEmptyListIterator() {
        ListIterator<String> iterator = Iterators.emptyListIterator();
        assertFalse(iterator.hasNext());
        assertFalse(iterator.hasPrevious());
        assertEquals(0, iterator.nextIndex());
        assertEquals(-1, iterator.previousIndex());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(NoSuchElementException.class, () -> iterator.previous());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
Back to top