Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for Moll (0.16 sec)

  1. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

         * not in {@link #nextElements}, this method throws an {@link UnknownElementException}.
         *
         * <p>This method is used when testing iterators without a known ordering. We poll the target
         * iterator's next element and pass it to the reference iterator through this method so it can
         * return the same element. This enables the assertion to pass and the reference iterator to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java

      public void testPoll_empty() {
        assertNull("emptyQueue.poll() should return null", getQueue().poll());
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ONE)
      public void testPoll_size1() {
        assertEquals("size1Queue.poll() should return first element", e0(), getQueue().poll());
        expectMissing(e0());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertEquals(1, (int) mmHeap.peek());
        assertEquals(1, (int) mmHeap.poll());
        assertEquals(3, (int) mmHeap.peekLast());
        assertEquals(2, (int) mmHeap.peek());
        assertEquals(2, (int) mmHeap.poll());
        assertEquals(3, (int) mmHeap.peekLast());
        assertEquals(3, (int) mmHeap.peek());
        assertEquals(3, (int) mmHeap.poll());
        assertNull(mmHeap.peekLast());
        assertNull(mmHeap.peek());
    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)
  4. android/guava-tests/test/com/google/common/collect/ForwardingQueueTest.java

        public boolean offer(T o) {
          return standardOffer(o);
        }
    
        @Override
        public @Nullable T peek() {
          return standardPeek();
        }
    
        @Override
        public @Nullable T poll() {
          return standardPoll();
        }
      }
    
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        suite.addTestSuite(ForwardingQueueTest.class);
        suite.addTest(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/LocalCache.java

            clearValueReferenceQueue();
          }
        }
    
        void clearKeyReferenceQueue() {
          while (keyReferenceQueue.poll() != null) {}
        }
    
        void clearValueReferenceQueue() {
          while (valueReferenceQueue.poll() != null) {}
        }
    
        // recency queue, shared by expiration and eviction
    
        /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/LocalCacheTest.java

      }
    
      private static <K, V> void assertNotificationEnqueued(
          LocalCache<K, V> map, K key, V value, int hash) {
        RemovalNotification<K, V> notification = map.removalNotificationQueue.poll();
        assertSame(key, notification.getKey());
        assertSame(value, notification.getValue());
      }
    
      // Segment eviction tests
    
      public void testDrainRecencyQueueOnWrite() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

      }
    
      private static <K, V> void assertNotificationEnqueued(
          LocalCache<K, V> map, K key, V value, int hash) {
        RemovalNotification<K, V> notification = map.removalNotificationQueue.poll();
        assertSame(key, notification.getKey());
        assertSame(value, notification.getValue());
      }
    
      // Segment eviction tests
    
      public void testDrainRecencyQueueOnWrite() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        }
      }
    
      void checkEmpty(BlockingQueue<?> q) {
        try {
          assertTrue(q.isEmpty());
          assertEquals(0, q.size());
          assertNull(q.peek());
          assertNull(q.poll());
          assertNull(q.poll(0, MILLISECONDS));
          assertEquals("[]", q.toString());
          assertTrue(Arrays.equals(q.toArray(), new Object[0]));
          assertFalse(q.iterator().hasNext());
          try {
            q.element();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheExpirationTest.java

                .removalListener(listener)
                .ticker(ticker)
                .build();
        cache.put(1, 1);
        ticker.advance(10, TimeUnit.MINUTES);
        cache.invalidateAll();
    
        assertThat(listener.poll().getCause()).isEqualTo(RemovalCause.EXPIRED);
      }
    
      private void runRemovalScheduler(
          LoadingCache<String, Integer> cache,
          CountingRemovalListener<String, Integer> removalListener,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

         * not in {@link #nextElements}, this method throws an {@link UnknownElementException}.
         *
         * <p>This method is used when testing iterators without a known ordering. We poll the target
         * iterator's next element and pass it to the reference iterator through this method so it can
         * return the same element. This enables the assertion to pass and the reference iterator to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
Back to top