Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for 400 (0.14 sec)

  1. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertTrue("Heap is not intact initially", mmHeap.isIntact());
        Iterator<Integer> it = mmHeap.iterator();
        assertEquals((Integer) 1, it.next());
        assertEquals((Integer) 20, it.next());
        assertEquals((Integer) 1000, it.next());
        assertEquals((Integer) 2, it.next());
        it.remove();
        // After this remove, 400 has moved up and 20 down past cursor
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

      public void testAdd_firstFewWithSuccess() {
        final int COUNT = 400;
    
        when(backingMap.get(KEY)).thenReturn(null);
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(null);
    
        assertEquals(0, multiset.add(KEY, COUNT));
      }
    
      public void testAdd_laterFewWithSuccess() {
        int INITIAL_COUNT = 32;
        int COUNT_TO_ADD = 400;
    
        AtomicInteger initial = new AtomicInteger(INITIAL_COUNT);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
            .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64))
            .withMaximumSizes(ImmutableSet.of(400, 1000))
            .withInitialCapacities(ImmutableSet.of(0, 1, 10, 100, 1000))
            .withExpireAfterWrites(
                ImmutableSet.of(
                    // DurationSpec.of(500, MILLISECONDS),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertTrue("Heap is not intact initially", mmHeap.isIntact());
        Iterator<Integer> it = mmHeap.iterator();
        assertEquals((Integer) 1, it.next());
        assertEquals((Integer) 20, it.next());
        assertEquals((Integer) 1000, it.next());
        assertEquals((Integer) 2, it.next());
        it.remove();
        // After this remove, 400 has moved up and 20 down past cursor
    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)
  5. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

      public void testAdd_firstFewWithSuccess() {
        final int COUNT = 400;
    
        when(backingMap.get(KEY)).thenReturn(null);
        when(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).thenReturn(null);
    
        assertEquals(0, multiset.add(KEY, COUNT));
      }
    
      public void testAdd_laterFewWithSuccess() {
        int INITIAL_COUNT = 32;
        int COUNT_TO_ADD = 400;
    
        AtomicInteger initial = new AtomicInteger(INITIAL_COUNT);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

      }
    
      public void testSimpleAcquireEarliestAvailableIsInPast() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        assertEquals(0.0, limiter.acquire(), EPSILON);
        stopwatch.sleepMillis(400);
        assertEquals(0.0, limiter.acquire(), EPSILON);
        assertEquals(0.0, limiter.acquire(), EPSILON);
        assertEquals(0.2, limiter.acquire(), EPSILON);
      }
    
      public void testOneSecondBurst() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
            .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64))
            .withMaximumSizes(ImmutableSet.of(400, 1000))
            .withInitialCapacities(ImmutableSet.of(0, 1, 10, 100, 1000))
            .withExpireAfterWrites(
                ImmutableSet.of(
                    // DurationSpec.of(500, MILLISECONDS),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

      }
    
      public void testSimpleAcquireEarliestAvailableIsInPast() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
        assertEquals(0.0, limiter.acquire(), EPSILON);
        stopwatch.sleepMillis(400);
        assertEquals(0.0, limiter.acquire(), EPSILON);
        assertEquals(0.0, limiter.acquire(), EPSILON);
        assertEquals(0.2, limiter.acquire(), EPSILON);
      }
    
      public void testOneSecondBurst() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/BloomFilter.java

        private static final long serialVersionUID = 1;
      }
    
      /**
       * Writes this {@code BloomFilter} to an output stream, with a custom format (not Java
       * serialization). This has been measured to save at least 400 bytes compared to regular
       * serialization.
       *
       * <p>Use {@linkplain #readFrom(InputStream, Funnel)} to reconstruct the written BloomFilter.
       */
      public void writeTo(OutputStream out) throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top