Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for usesValueReferences (0.14 sec)

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

        for (CacheBuilder<Object, Object> builder : allKeyValueStrengthMakers()) {
          LocalCache<Object, Object> map = makeLocalCache(builder.concurrencyLevel(1));
          if (map.usesValueReferences()) {
            Segment<Object, Object> segment = map.segments[0];
    
            Object keyOne = new Object();
            int hashOne = map.hash(keyOne);
            Object valueOne = new Object();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        for (CacheBuilder<Object, Object> builder : allKeyValueStrengthMakers()) {
          LocalCache<Object, Object> map = makeLocalCache(builder.concurrencyLevel(1));
          if (map.usesValueReferences()) {
            Segment<Object, Object> segment = map.segments[0];
    
            Object keyOne = new Object();
            int hashOne = map.hash(keyOne);
            Object valueOne = new Object();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/LocalCache.java

      }
    
      boolean usesAccessEntries() {
        return usesAccessQueue() || recordsAccess();
      }
    
      boolean usesKeyReferences() {
        return keyStrength != Strength.STRONG;
      }
    
      boolean usesValueReferences() {
        return valueStrength != Strength.STRONG;
      }
    
      enum Strength {
        /*
         * TODO(kevinb): If we strongly reference the value and aren't loading, we needn't wrap the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top