Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for hasPrevious (0.1 sec)

  1. 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)
  2. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        return asList(hasNext, next, remove);
      }
    
      Stimulus<E, ListIterator<E>> hasPrevious =
          new Stimulus<E, ListIterator<E>>("hasPrevious") {
            @Override
            void executeAndCompare(ListIterator<E> reference, ListIterator<E> target) {
              assertEquals(reference.hasPrevious(), target.hasPrevious());
            }
          };
      Stimulus<E, ListIterator<E>> nextIndex =
    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-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        return asList(hasNext, next, remove);
      }
    
      Stimulus<E, ListIterator<E>> hasPrevious =
          new Stimulus<E, ListIterator<E>>("hasPrevious") {
            @Override
            void executeAndCompare(ListIterator<E> reference, ListIterator<E> target) {
              assertEquals(reference.hasPrevious(), target.hasPrevious());
            }
          };
      Stimulus<E, ListIterator<E>> nextIndex =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TransformedListIterator.java

        super(backingIterator);
      }
    
      private ListIterator<? extends F> backingIterator() {
        return (ListIterator<? extends F>) backingIterator;
      }
    
      @Override
      public final boolean hasPrevious() {
        return backingIterator().hasPrevious();
      }
    
      @Override
      @ParametricNullness
      public final T previous() {
        return transform(backingIterator().previous());
      }
    
      @Override
      public final int nextIndex() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Nov 21 21:43:01 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TransformedListIterator.java

        super(backingIterator);
      }
    
      private ListIterator<? extends F> backingIterator() {
        return (ListIterator<? extends F>) backingIterator;
      }
    
      @Override
      public final boolean hasPrevious() {
        return backingIterator().hasPrevious();
      }
    
      @Override
      @ParametricNullness
      public final T previous() {
        return transform(backingIterator().previous());
      }
    
      @Override
      public final int nextIndex() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Nov 21 21:43:01 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Lists.java

              forwardIterator.previous();
              canRemoveOrSet = false;
            }
    
            @Override
            public boolean hasNext() {
              return forwardIterator.hasPrevious();
            }
    
            @Override
            public boolean hasPrevious() {
              return forwardIterator.hasNext();
            }
    
            @Override
            @ParametricNullness
            public T next() {
              if (!hasNext()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/LinkedListMultimap.java

            next = current.next;
          }
          removeNode(current);
          current = null;
          expectedModCount = modCount;
        }
    
        @Override
        public boolean hasPrevious() {
          checkForConcurrentModification();
          return previous != null;
        }
    
        @CanIgnoreReturnValue
        @Override
        public Node<K, V> previous() {
          checkForConcurrentModification();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java

                    ListIterator<DependencyNode> iter = collectStepTrace
                            .getPath()
                            .listIterator(collectStepTrace.getPath().size());
                    while (iter.hasPrevious()) {
                        DependencyNode curr = iter.previous();
                        indent += "  ";
                        trackingData.add(indent + curr + " (" + collectStepTrace.getContext() + ")");
                    }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            ListIterator<T> listIter = list.listIterator(list.size());
            return new Iterator<T>() {
              @Override
              public boolean hasNext() {
                return listIter.hasPrevious();
              }
    
              @Override
              public T next() {
                return listIter.previous();
              }
    
              @Override
              public void remove() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals("4", iterator.previous());
        assertEquals("3", iterator.previous());
        assertEquals("2", iterator.previous());
        assertTrue(iterator.hasPrevious());
        assertEquals("1", iterator.previous());
        assertFalse(iterator.hasPrevious());
        assertEquals(-1, iterator.previousIndex());
        try {
          iterator.previous();
          fail("did not detect beginning of list");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
Back to top