Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        Object key = new Object();
        assertNotNull(cache.getUnchecked(key));
    
        CacheTesting.simulateValueReclamation(cache, key);
    
        // this blocks if computation can't deal with partially-collected values
        assertNotNull(cache.getUnchecked(key));
        assertEquals(1, cache.size());
        assertEquals(2, countingLoader.getCount());
    
        CacheTesting.simulateValueReclamation(cache, key);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Preconditions.java

       *
       * if (guardExpression) {
       *    throw new BadException(badMsg(...));
       * }
       *
       * The alternative natural refactorings into void or Exception-returning methods are much slower.
       * This is a big deal - we're talking factors of 2-8 in microbenchmarks, not just 10-20%. (This is
       * a hotspot optimizer bug, which should be fixed, but that's a separate, big project).
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        Object key = new Object();
        assertNotNull(cache.getUnchecked(key));
    
        CacheTesting.simulateValueReclamation(cache, key);
    
        // this blocks if computation can't deal with partially-collected values
        assertNotNull(cache.getUnchecked(key));
        assertEquals(1, cache.size());
        assertEquals(2, countingLoader.getCount());
    
        CacheTesting.simulateValueReclamation(cache, key);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

          HashMap<Object, Object> map1,
          HashMap<Object, Object> map2)
          throws Exception {
        // Only start measuring table size after the first element inserted, to
        // deal with empty-map optimization.
        map1.put(0, null);
    
        int initialBuckets = bucketsOf(map1);
    
        for (int i = 1; i < size; i++) {
          map1.put(i, null);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

          HashMap<Object, Object> map1,
          HashMap<Object, Object> map2)
          throws Exception {
        // Only start measuring table size after the first element inserted, to
        // deal with empty-map optimization.
        map1.put(0, null);
    
        int initialBuckets = bucketsOf(map1);
    
        for (int i = 1; i < size; i++) {
          map1.put(i, null);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeToken.java

       * Foo<Enum<?>>} according to JLS. See testRecursiveWildcardSubtypeBug() for a real example.
       *
       * <p>It appears that properly handling recursive type bounds in the presence of implicit type
       * bounds is not easy. For now we punt, hoping that this defect should rarely cause issues in real
       * code.
       *
       * @param formalType is {@code Foo<formalType>} a supertype of {@code Foo<T>}?
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Preconditions.java

       *
       * if (guardExpression) {
       *    throw new BadException(badMsg(...));
       * }
       *
       * The alternative natural refactorings into void or Exception-returning methods are much slower.
       * This is a big deal - we're talking factors of 2-8 in microbenchmarks, not just 10-20%. (This is
       * a hotspot optimizer bug, which should be fixed, but that's a separate, big project).
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/CacheBuilder.java

     *             return createExpensiveGraph(key);
     *           }
     *         });
     * }</pre>
     *
     * <p>Or equivalently,
     *
     * <pre>{@code
     * // In real life this would come from a command-line flag or config file
     * String spec = "maximumSize=10000,expireAfterWrite=10m";
     *
     * LoadingCache<Key, Graph> graphs = CacheBuilder.from(spec)
     *     .removalListener(MY_LISTENER)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

          // It's a weird formula, but tests prove it works.
          int adjust = size() - 1;
          for (int i = 0; i < axes.size(); i++) {
            adjust *= 31;
            adjust = ~~adjust;
            // in GWT, we have to deal with integer overflow carefully
          }
          int hash = 1;
          for (Set<E> axis : axes) {
            hash = 31 * hash + (size() / axis.size() * axis.hashCode());
    
            hash = ~~hash;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 77.2K bytes
    - Viewed (0)
Back to top