Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 13 for Strength (0.05 seconds)

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

        assertThat(spec.maximumSize).isEqualTo(20);
        assertThat(spec.maximumWeight).isNull();
        assertThat(spec.concurrencyLevel).isEqualTo(30);
        assertThat(spec.keyStrength).isEqualTo(Strength.WEAK);
        assertThat(spec.valueStrength).isEqualTo(Strength.WEAK);
        assertThat(spec.writeExpirationTimeUnit).isEqualTo(HOURS);
        assertThat(spec.accessExpirationTimeUnit).isEqualTo(MINUTES);
        assertThat(spec.writeExpirationDuration).isEqualTo(1L);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        checkStrength(map, Strength.WEAK, Strength.STRONG);
        assertThat(map.entryHelper)
            .isInstanceOf(MapMakerInternalMap.WeakKeyStrongValueEntry.Helper.class);
      }
    
      public void testSetWeakValues() {
        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker().weakValues());
        checkStrength(map, Strength.STRONG, Strength.WEAK);
        assertThat(map.entryHelper)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

        checkStrength(map, Strength.WEAK, Strength.STRONG);
        assertThat(map.entryHelper)
            .isInstanceOf(MapMakerInternalMap.WeakKeyStrongValueEntry.Helper.class);
      }
    
      public void testSetWeakValues() {
        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker().weakValues());
        checkStrength(map, Strength.STRONG, Strength.WEAK);
        assertThat(map.entryHelper)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

              }
            });
      }
    
      private CacheBuilderFactory cacheFactory() {
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
            .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64))
            .withMaximumSizes(ImmutableSet.of(0, 1, 10, 100, 1000))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java

              }
            });
      }
    
      private CacheBuilderFactory cacheFactory() {
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
            .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64))
            .withMaximumSizes(ImmutableSet.of(0, 1, 10, 100, 1000))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.MapMakerInternalMap.Strength.STRONG;
    import static com.google.common.collect.MapMakerInternalMap.Strength.WEAK;
    import static com.google.common.testing.SerializableTester.reserialize;
    import static com.google.common.testing.SerializableTester.reserializeAndAssert;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Dec 08 22:42:14 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

        // would cause one to be evicted.
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
            .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64))
            .withMaximumSizes(ImmutableSet.of(400, 1000))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

        // would cause one to be evicted.
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
            .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64))
            .withMaximumSizes(ImmutableSet.of(400, 1000))
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  9. chainable_api.go

    // advanced techniques like specifying lock strength and optimizer hints. See the
    // [docs] for more depth.
    //
    //	// add a simple limit clause
    //	db.Clauses(clause.Limit{Limit: 1}).Find(&User{})
    //	// tell the optimizer to use the `idx_user_name` index
    //	db.Clauses(hints.UseIndex("idx_user_name")).Find(&User{})
    //	// specify the lock strength to UPDATE
    //	db.Clauses(clause.Locking{Strength: "UPDATE"}).Find(&users)
    //
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Fri Sep 19 01:49:06 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          }
          statsCounter.recordEviction();
          return removal;
        }
      }
    
      /**
       * Any updates to LocalCache.Strength used in CacheBuilder need to be matched in this class for
       * compilation purposes.
       */
      enum Strength {
        /*
         * TODO(kevinb): If we strongly reference the value and aren't loading, we needn't wrap the
         * value. This could save ~8 bytes per entry.
         */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 21.8K bytes
    - Click Count (0)
Back to Top