Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for soft (0.14 sec)

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

     * }
     * public void testFooLeak() {
     *   GcFinalization.awaitClear(fooWeakRef());
     * }
     * }</pre>
     *
     * <p>This class cannot currently be used to test soft references, since this class does not try to
     * create the memory pressure required to cause soft references to be cleared.
     *
     * <p>This class only provides testing utilities. It is not designed for direct use in production or
     * for benchmarking.
     *
    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-testlib/src/com/google/common/testing/GcFinalization.java

     * }
     * public void testFooLeak() {
     *   GcFinalization.awaitClear(fooWeakRef());
     * }
     * }</pre>
     *
     * <p>This class cannot currently be used to test soft references, since this class does not try to
     * create the memory pressure required to cause soft references to be cleared.
     *
     * <p>This class only provides testing utilities. It is not designed for direct use in production or
     * for benchmarking.
     *
    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)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

        return this;
      }
    
      CacheBuilderFactory withKeyStrengths(Set<Strength> keyStrengths) {
        this.keyStrengths = Sets.newLinkedHashSet(keyStrengths);
        Preconditions.checkArgument(!this.keyStrengths.contains(Strength.SOFT));
        return this;
      }
    
      CacheBuilderFactory withValueStrengths(Set<Strength> valueStrengths) {
        this.valueStrengths = Sets.newLinkedHashSet(valueStrengths);
        return this;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

        return this;
      }
    
      CacheBuilderFactory withKeyStrengths(Set<Strength> keyStrengths) {
        this.keyStrengths = Sets.newLinkedHashSet(keyStrengths);
        Preconditions.checkArgument(!this.keyStrengths.contains(Strength.SOFT));
        return this;
      }
    
      CacheBuilderFactory withValueStrengths(Set<Strength> valueStrengths) {
        this.valueStrengths = Sets.newLinkedHashSet(valueStrengths);
        return this;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

         * value. This could save ~8 bytes per entry.
         */
    
        STRONG {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.equals();
          }
        },
    
        SOFT {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.identity();
          }
        },
    
        WEAK {
          @Override
          Equivalence<Object> defaultEquivalence() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

       * To maintain this code, make a change for the strong reference type. Then, cut and paste, and
       * replace "Strong" with "Soft" or "Weak" within the pasted text. The primary difference is that
       * strong entries store the key reference directly while soft and weak entries delegate to their
       * respective superclasses.
       */
    
      /** Used for strongly-referenced keys. */
    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)
  7. android/guava-tests/test/com/google/common/cache/CacheTesting.java

          if (ref != null) {
            ref.clear();
          }
        }
      }
    
      /**
       * Poke into the Cache internals to simulate garbage collection of the given key. This assumes
       * that the given entry is a weak or soft reference, and throws an IllegalStateException if that
       * assumption does not hold.
       */
      static <K, V> void simulateKeyReclamation(Cache<K, V> cache, K key) {
        ReferenceEntry<K, V> entry = getReferenceEntry(cache, key);
    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)
  8. android/guava/src/com/google/common/collect/Multimaps.java

       *
       * <p>Note: the multimap assumes complete ownership over of {@code map} and the collections
       * returned by {@code factory}. Those objects should not be manually updated and they should not
       * use soft, weak, or phantom references.
       *
       * @param map place to store the mapping from each key to its corresponding values
       * @param factory supplier of new, empty collections that will each hold all values for a given
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheTesting.java

          if (ref != null) {
            ref.clear();
          }
        }
      }
    
      /**
       * Poke into the Cache internals to simulate garbage collection of the given key. This assumes
       * that the given entry is a weak or soft reference, and throws an IllegalStateException if that
       * assumption does not hold.
       */
      static <K, V> void simulateKeyReclamation(Cache<K, V> cache, K key) {
        ReferenceEntry<K, V> entry = getReferenceEntry(cache, key);
    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)
  10. android/guava/src/com/google/common/cache/LocalCache.java

       * To maintain this code, make a change for the strong reference type. Then, cut and paste, and
       * replace "Strong" with "Soft" or "Weak" within the pasted text. The primary difference is that
       * strong entries store the key reference directly while soft and weak entries delegate to their
       * respective superclasses.
       */
    
      /** Used for strongly-referenced keys. */
    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