Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 485 for Next (0.13 sec)

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

          }
    
          @Override
          @ParametricNullness
          public E next() {
            final Map.Entry<E, Count> mapEntry = backingEntries.next();
            toRemove = mapEntry;
            return mapEntry.getKey();
          }
    
          @Override
          public void remove() {
            checkState(toRemove != null, "no calls to next() since the last call to remove()");
            size -= toRemove.getValue().getAndSet(0);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterables.java

        checkNotNull(predicate);
        Iterator<T> iterator = removeFrom.iterator();
        while (iterator.hasNext()) {
          T next = iterator.next();
          if (predicate.apply(next)) {
            iterator.remove();
            return next;
          }
        }
        return null;
      }
    
      /**
       * Determines whether two iterables contain equal elements in the same order. More specifically,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/IterablesTest.java

                    return Integer.valueOf(from);
                  }
                });
    
        Iterator<Integer> resultIterator = result.iterator();
        resultIterator.next();
    
        try {
          resultIterator.next();
          fail("Expected NFE");
        } catch (NumberFormatException expected) {
        }
      }
    
      public void testNullFriendlyTransform() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        int i = 0;
        while (expectedIterator.hasNext()) {
          Object expected = expectedIterator.next();
    
          assertTrue(
              "index " + i + " expected <" + expected + "., actual is exhausted",
              actualIterator.hasNext());
    
          Object actual = actualIterator.next();
          assertEquals("index " + i, expected, actual);
          i++;
        }
        if (actualIterator.hasNext()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     * acquire(1000)} will result in exactly the same throttling, if any), but it affects the throttling
     * of the <i>next</i> request. I.e., if an expensive task arrives at an idle RateLimiter, it will be
     * granted immediately, but it is the <i>next</i> request that will experience extra throttling,
     * thus paying for the cost of the expensive task.
     *
     * @author Dimitris Andreou
     * @since 13.0
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TreeMultiset.java

            AvlNode<E> next = current.succ();
    
            current.elemCount = 0;
            // Also clear these fields so that one deleted Entry doesn't retain all elements.
            current.left = null;
            current.right = null;
            current.pred = null;
            current.succ = null;
    
            current = next;
          }
          successor(header, header);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

       * high 32 bits of each long is the "prev" pointer, whereas the low 32 bits is the "succ" pointer
       * (pointing to the next entry in the linked list). The pointers in [size(), entries.length) are
       * all "null" (UNSET).
       *
       * <p>A node with "prev" pointer equal to {@code ENDPOINT} is the first node in the linked list,
       * and a node with "next" pointer equal to {@code ENDPOINT} is the last node.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractIndexedListIterator.java

      private int position;
    
      /** Returns the element with the specified index. This method is called by {@link #next()}. */
      @ParametricNullness
      protected abstract E get(int index);
    
      /**
       * Constructs an iterator across a sequence of the given size whose initial position is 0. That
       * is, the first call to {@link #next()} will return the first element (or throw {@link
       * NoSuchElementException} if {@code size} is zero).
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 3.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java

        assertEquals(o1, three.next().target);
        assertFalse(three.hasNext());
    
        three = registry.getSubscribers("");
    
        registry.unregister(s2);
    
        assertEquals(s1, three.next().target);
        assertEquals(s2, three.next().target);
        assertEquals(o1, three.next().target);
        assertFalse(three.hasNext());
    
        Iterator<Subscriber> two = registry.getSubscribers("");
        assertEquals(s1, two.next().target);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertEquals((Integer) 12, it.next());
        assertEquals((Integer) 30, it.next());
        assertEquals((Integer) 40, it.next());
        // Skipping 20
        assertEquals((Integer) 11, it.next());
        // Not skipping 400, because it moved back down
        assertEquals((Integer) 400, it.next());
        assertEquals((Integer) 13, it.next());
        assertEquals((Integer) 200, it.next());
        assertEquals((Integer) 300, it.next());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
Back to top