Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Ref (0.11 sec)

  1. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

       *   public boolean isDone() {
       *     return ref.get() == null;
       *   }
       * });
       * }</pre>
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
      public static void awaitClear(WeakReference<?> ref) {
        awaitDone(
            new FinalizationPredicate() {
              @Override
              public boolean isDone() {
                return ref.get() == null;
              }
            });
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

    import com.google.common.collect.MapMakerInternalMap.WeakValueEntry;
    import com.google.common.collect.MapMakerInternalMap.WeakValueReference;
    import com.google.common.testing.NullPointerTester;
    import java.lang.ref.Reference;
    import java.util.concurrent.atomic.AtomicReferenceArray;
    import junit.framework.TestCase;
    
    /** @author Charles Fry */
    @SuppressWarnings("deprecation") // many tests of deprecated methods
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

    import com.google.common.collect.MapMakerInternalMap.WeakValueEntry;
    import com.google.common.collect.MapMakerInternalMap.WeakValueReference;
    import com.google.common.testing.NullPointerTester;
    import java.lang.ref.Reference;
    import java.util.concurrent.atomic.AtomicReferenceArray;
    import junit.framework.TestCase;
    
    /** @author Charles Fry */
    @SuppressWarnings("deprecation") // many tests of deprecated methods
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheTesting.java

          ValueReference<K, V> valueRef = entry.getValueReference();
          // fail on strong/computing refs
          Preconditions.checkState(valueRef instanceof Reference);
          Reference<V> ref = (Reference<V>) valueRef;
          if (ref != null) {
            ref.clear();
          }
        }
      }
    
      /**
       * Poke into the Cache internals to simulate garbage collection of the given key. This assumes
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/GcFinalization.java

       *   public boolean isDone() {
       *     return ref.get() == null;
       *   }
       * });
       * }</pre>
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
      public static void awaitClear(WeakReference<?> ref) {
        awaitDone(
            new FinalizationPredicate() {
              @Override
              public boolean isDone() {
                return ref.get() == null;
              }
            });
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Striped.java

    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.MapMaker;
    import com.google.common.math.IntMath;
    import com.google.common.primitives.Ints;
    import java.lang.ref.Reference;
    import java.lang.ref.ReferenceQueue;
    import java.lang.ref.WeakReference;
    import java.math.RoundingMode;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.List;
    import java.util.concurrent.ConcurrentMap;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  7. android/guava/src/com/google/common/collect/MapMaker.java

    import com.google.common.base.Equivalence;
    import com.google.common.base.MoreObjects;
    import com.google.common.collect.MapMakerInternalMap.Strength;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.lang.ref.WeakReference;
    import java.util.ConcurrentModificationException;
    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    import javax.annotation.CheckForNull;
    
    /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheTesting.java

          ValueReference<K, V> valueRef = entry.getValueReference();
          // fail on strong/computing refs
          Preconditions.checkState(valueRef instanceof Reference);
          Reference<V> ref = (Reference<V>) valueRef;
          if (ref != null) {
            ref.clear();
          }
        }
      }
    
      /**
       * Poke into the Cache internals to simulate garbage collection of the given key. This assumes
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

    import com.google.common.util.concurrent.FuturesGetCheckedInputs.TwoArgConstructorException;
    import com.google.common.util.concurrent.FuturesGetCheckedInputs.TwoArgConstructorRuntimeException;
    import java.lang.ref.WeakReference;
    import java.net.URLClassLoader;
    import java.util.concurrent.CancellationException;
    import java.util.concurrent.Future;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

    import com.google.common.collect.ImmutableList;
    import com.google.common.testing.GcFinalization;
    import java.io.Closeable;
    import java.io.File;
    import java.lang.ref.WeakReference;
    import java.lang.reflect.Constructor;
    import java.lang.reflect.Field;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.security.Permission;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
Back to top