Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 345 for Charmes (0.42 sec)

  1. android/guava/src/com/google/common/cache/Weigher.java

     * the License.
     */
    
    package com.google.common.cache;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * Calculates the weights of cache entries.
     *
     * @author Charles Fry
     * @since 11.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface Weigher<K, V> {
    
      /**
       * Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/AbstractLoadingCache.java

     * in terms of {@link #invalidate}. The method {@link #cleanUp} is a no-op. All other methods throw
     * an {@link UnsupportedOperationException}.
     *
     * @author Charles Fry
     * @since 11.0
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class AbstractLoadingCache<K, V> extends AbstractCache<K, V>
        implements LoadingCache<K, V> {
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/AbstractLoadingCache.java

     * in terms of {@link #invalidate}. The method {@link #cleanUp} is a no-op. All other methods throw
     * an {@link UnsupportedOperationException}.
     *
     * @author Charles Fry
     * @since 11.0
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class AbstractLoadingCache<K, V> extends AbstractCache<K, V>
        implements LoadingCache<K, V> {
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/ForwardingLoadingCache.java

     *
     * <p>Note that {@link #get}, {@link #getUnchecked}, and {@link #apply} all expose the same
     * underlying functionality, so should probably be overridden as a group.
     *
     * @author Charles Fry
     * @since 11.0
     */
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class ForwardingLoadingCache<K, V> extends ForwardingCache<K, V>
        implements LoadingCache<K, V> {
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 2.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheLoaderTest.java

    import java.util.concurrent.Executor;
    import java.util.concurrent.Future;
    import java.util.concurrent.atomic.AtomicInteger;
    import junit.framework.TestCase;
    
    /**
     * Unit tests for {@link CacheLoader}.
     *
     * @author Charles Fry
     */
    public class CacheLoaderTest extends TestCase {
    
      private static class QueuingExecutor implements Executor {
        private final Deque<Runnable> tasks = Queues.newArrayDeque();
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/ForwardingLoadingCacheTest.java

    import com.google.common.collect.ImmutableMap;
    import java.util.concurrent.ExecutionException;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link ForwardingLoadingCache}.
     *
     * @author Charles Fry
     */
    public class ForwardingLoadingCacheTest extends TestCase {
      private LoadingCache<String, Boolean> forward;
      private LoadingCache<String, Boolean> mock;
    
      @SuppressWarnings({"unchecked", "DoNotMock"}) // mock
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheRefreshTest.java

    import com.google.common.cache.TestingCacheLoaders.IncrementingLoader;
    import com.google.common.testing.FakeTicker;
    import junit.framework.TestCase;
    
    /**
     * Tests relating to automatic cache refreshing.
     *
     * @author Charles Fry
     */
    public class CacheRefreshTest extends TestCase {
      public void testAutoRefresh() {
        FakeTicker ticker = new FakeTicker();
        IncrementingLoader loader = incrementingLoader();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

    import com.google.common.primitives.Ints;
    import java.util.Random;
    import java.util.concurrent.atomic.AtomicLong;
    
    /**
     * Single-threaded benchmark for {@link LoadingCache}.
     *
     * @author Charles Fry
     */
    public class LoadingCacheSingleThreadBenchmark {
      @Param({"1000", "2000"})
      int maximumSize;
    
      @Param("5000")
      int distinctKeys;
    
      @Param("4")
      int segments;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/annotations/GwtCompatible.java

     * to return a value with a GWT serializable type.
     *
     * <p>Note that a {@code GwtCompatible} type may have some {@link GwtIncompatible} methods.
     *
     * @author Charles Fry
     * @author Hayward Chan
     */
    @Retention(RetentionPolicy.CLASS)
    @Target({ElementType.TYPE, ElementType.METHOD})
    @Documented
    @GwtCompatible
    public @interface GwtCompatible {
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 2.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

    import java.util.concurrent.atomic.AtomicReference;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@link AbstractLoadingCache}.
     *
     * @author Charles Fry
     */
    public class AbstractLoadingCacheTest extends TestCase {
    
      public void testGetUnchecked_checked() {
        final Exception cause = new Exception();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5K bytes
    - Viewed (0)
Back to top