Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for nextIndex (0.1 seconds)

  1. 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) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 27K bytes
    - Click Count (0)
  2. 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];
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  3. 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 =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 20.8K bytes
    - Click Count (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 =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 21.4K bytes
    - Click Count (0)
  5. 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];
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 31 13:15:26 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

        public T next() {
          if (!hasNext()) {
            throw new NoSuchElementException();
          }
          T result = result(entryIndex);
          toRemove = entryIndex;
          entryIndex = backingMap.nextIndex(entryIndex);
          return result;
        }
    
        @Override
        public void remove() {
          checkForConcurrentModification();
          CollectPreconditions.checkRemove(toRemove != -1);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 05 23:15:58 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  7. 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];
          }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        init(DEFAULT_SIZE, DEFAULT_LOAD_FACTOR);
      }
    
      ObjectCountHashMap(ObjectCountHashMap<? extends K> map) {
        init(map.size(), DEFAULT_LOAD_FACTOR);
        for (int i = map.firstIndex(); i != -1; i = map.nextIndex(i)) {
          put(map.getKey(i), map.getValue(i));
        }
      }
    
      /**
       * Constructs a new instance of {@code ObjectCountHashMap} with the specified capacity.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  9. 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();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 42.6K bytes
    - Click Count (0)
  10. 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) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 35.4K bytes
    - Click Count (0)
Back to Top