Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for nextIndex (0.07 sec)

  1. guava/src/com/google/common/collect/ForwardingListIterator.java

        delegate().add(element);
      }
    
      @Override
      public boolean hasPrevious() {
        return delegate().hasPrevious();
      }
    
      @Override
      public int nextIndex() {
        return delegate().nextIndex();
      }
    
      @CanIgnoreReturnValue
      @Override
      @ParametricNullness
      public E previous() {
        return delegate().previous();
      }
    
      @Override
      public int previousIndex() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/LinkedListMultimap.java

          }
          next = current = previous;
          previous = previous.previous;
          nextIndex--;
          return current;
        }
    
        @Override
        public int nextIndex() {
          return nextIndex;
        }
    
        @Override
        public int previousIndex() {
          return nextIndex - 1;
        }
    
        @Override
        public void set(Entry<K, V> e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

           */
          return nextIndex >= 0;
        }
    
        /**
         * Checks whether nextIndex is valid; if so setting nextItem. Stops iterator when either hits
         * putIndex or sees null item.
         */
        private void checkNext() {
          if (nextIndex == putIndex) {
            nextIndex = -1;
            nextItem = null;
          } else {
            nextItem = items[nextIndex];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. guava/src/com/google/common/collect/AbstractIndexedListIterator.java

      protected AbstractIndexedListIterator(int size) {
        this(size, 0);
      }
    
      /**
       * Constructs an iterator across a sequence of the given size with the given initial position.
       * That is, the first call to {@link #nextIndex()} will return {@code position}, and the first
       * call to {@link #next()} will return the element at that index, if available. Calls to {@link
       * #previous()} can retrieve the preceding {@code position} elements.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingListIterator.java

        delegate().add(element);
      }
    
      @Override
      public boolean hasPrevious() {
        return delegate().hasPrevious();
      }
    
      @Override
      public int nextIndex() {
        return delegate().nextIndex();
      }
    
      @CanIgnoreReturnValue
      @Override
      @ParametricNullness
      public E previous() {
        return delegate().previous();
      }
    
      @Override
      public int previousIndex() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top