Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Won (0.14 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ListenableFuture<Object> input =
            UncheckedThrowingFuture.throwingRuntimeException(new MyRuntimeException());
    
        // We'd catch only MyRuntimeException.class here, but then the test won't compile under GWT.
        ListenableFuture<Object> output =
            catching(input, Throwable.class, identity(), directExecutor());
        assertThat(getDone(output)).isInstanceOf(MyRuntimeException.class);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        ListenableFuture<Object> input =
            UncheckedThrowingFuture.throwingRuntimeException(new MyRuntimeException());
    
        // We'd catch only MyRuntimeException.class here, but then the test won't compile under GWT.
        ListenableFuture<Object> output =
            catching(input, Throwable.class, identity(), directExecutor());
        assertThat(getDone(output)).isInstanceOf(MyRuntimeException.class);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        suite.addTest(
            ConcurrentMapTestSuiteBuilder.using(
                    new TestStringCacheGenerator(createCacheBuilder().weakKeys()))
                .named("LocalCache with weakKeys") // keys are string literals and won't be GC'd
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE)
                .createTestSuite());
    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)
  4. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        suite.addTest(
            ConcurrentMapTestSuiteBuilder.using(
                    new TestStringCacheGenerator(createCacheBuilder().weakKeys()))
                .named("LocalCache with weakKeys") // keys are string literals and won't be GC'd
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.GENERAL_PURPOSE,
                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE)
                .createTestSuite());
    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)
  5. guava/src/com/google/common/cache/LocalCache.java

           * elements from each bin must either stay at same index, or move with a power of two offset.
           * We eliminate unnecessary node creation by catching cases where old nodes can be reused
           * because their next fields won't change. Statistically, at the default threshold, only about
           * one-sixth of them need cloning when a table doubles. The nodes they replace will be garbage
    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. android/guava/src/com/google/common/collect/Maps.java

          // meant that sometimes a too-large threshold is calculated. However, this new threshold is
          // independent of the initial capacity, except that it won't be lower than the threshold
          // computed from that capacity. Because the internal table is only allocated on the first
          // write, we won't see copying because of the new threshold. So it is always OK to use the
          // calculation here.
          return (int) Math.ceil(expectedSize / 0.75);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/LocalCache.java

           * elements from each bin must either stay at same index, or move with a power of two offset.
           * We eliminate unnecessary node creation by catching cases where old nodes can be reused
           * because their next fields won't change. Statistically, at the default threshold, only about
           * one-sixth of them need cloning when a table doubles. The nodes they replace will be garbage
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
Back to top