Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 60 for Seek (0.14 sec)

  1. android/guava/src/com/google/common/collect/CollectCollectors.java

        checkNotNull(valuesFunction);
        return collectingAndThen(
            flatteningToMultimap(
                input -> checkNotNull(keyFunction.apply(input)),
                input -> valuesFunction.apply(input).peek(Preconditions::checkNotNull),
                MultimapBuilder.linkedHashKeys().arrayListValues()::<K, V>build),
            ImmutableListMultimap::copyOf);
      }
    
      static <T extends @Nullable Object, K, V>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     *     .maximumSize(1000)
     *     .create();
     * }</pre>
     *
     * <p>As a {@link Queue} it functions exactly as a {@link PriorityQueue}: its head element -- the
     * implicit target of the methods {@link #peek()}, {@link #poll()} and {@link #remove()} -- is
     * defined as the <i>least</i> element in the queue according to the queue's comparator. But unlike
     * a regular priority queue, the methods {@link #peekLast}, {@link #pollLast} and {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/QueuesTest.java

      }
    
      /** Checks that #drain() invocations behave correctly for a drained (empty) queue. */
      private void assertDrained(BlockingQueue<Object> q) {
        assertNull(q.peek());
        assertInterruptibleDrained(q);
        assertUninterruptibleDrained(q);
      }
    
      private void assertInterruptibleDrained(BlockingQueue<Object> q) {
        // nothing to drain, thus this should wait doing nothing
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

            "Should be able to peek() middle element multiple times", "B", peekingIterator.peek());
        assertEquals(
            "next() should still return middle element after peeking", "B", peekingIterator.next());
    
        assertEquals("Should be able to peek() at last element", "C", peekingIterator.peek());
        assertEquals(
            "Should be able to peek() last element multiple times", "C", peekingIterator.peek());
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        } catch (ExecutionException expected) {
                        }
                        try {
                          peeker.getDone(nonInput);
                          fail("Peeker should not be able to peek into non-input ClosingFuture.");
                        } catch (IllegalArgumentException expected) {
                        }
                        capturedPeeker.set(peeker);
                        return closeable2;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/IterablesTest.java

        Iterator<Integer> consumingIterator = Iterables.consumingIterable(queue).iterator();
    
        assertEquals(5, queue.peek().intValue());
        assertEquals(5, consumingIterator.next().intValue());
    
        assertEquals(14, queue.peek().intValue());
        assertTrue(consumingIterator.hasNext());
        assertTrue(queue.isEmpty());
      }
    
      public void testConsumingIterable_noIteratorCall() {
    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)
  7. guava/src/com/google/common/collect/ForwardingQueue.java

      }
    
      @CanIgnoreReturnValue
      @Override
      @ParametricNullness
      public E remove() {
        return delegate().remove();
      }
    
      @Override
      @CheckForNull
      public E peek() {
        return delegate().peek();
      }
    
      @Override
      @ParametricNullness
      public E element() {
        return delegate().element();
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SynchronizedQueueTest.java

        public boolean remove(Object object) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.remove(object);
        }
    
        @Override
        public @Nullable E peek() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.peek();
        }
    
        @Override
        public E element() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.element();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractIterator.java

       * contract of {@link PeekingIterator#peek()}.
       *
       * <p>Implementations of {@code AbstractIterator} that wish to expose this functionality should
       * implement {@code PeekingIterator}.
       */
      @ParametricNullness
      public final T peek() {
        if (!hasNext()) {
          throw new NoSuchElementException();
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeRangeSet.java

                      .iterator());
          Cut<C> cut;
          if (positiveItr.hasNext()) {
            cut =
                (positiveItr.peek().upperBound == Cut.<C>aboveAll())
                    ? positiveItr.next().lowerBound
                    : positiveRangesByLowerBound.higherKey(positiveItr.peek().upperBound);
          } else if (!complementLowerBoundWindow.contains(Cut.<C>belowAll())
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 32.5K bytes
    - Viewed (0)
Back to top