Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getValueStrength (2.1 sec)

  1. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          MapMaker builder) {
        if (builder.getKeyStrength() == Strength.STRONG
            && builder.getValueStrength() == Strength.STRONG) {
          return new MapMakerInternalMap<>(builder, StrongKeyStrongValueEntry.Helper.<K, V>instance());
        }
        if (builder.getKeyStrength() == Strength.STRONG
            && builder.getValueStrength() == Strength.WEAK) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 90K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMaker.java

        if (strength != Strength.STRONG) {
          // STRONG could be used during deserialization.
          useCustomMap = true;
        }
        return this;
      }
    
      Strength getValueStrength() {
        return MoreObjects.firstNonNull(valueStrength, Strength.STRONG);
      }
    
      /**
       * Builds a thread-safe map. This method does not alter the state of this {@code MapMaker}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheBuilder.java

        this.valueEquivalence = checkNotNull(equivalence);
        return this;
      }
    
      Equivalence<Object> getValueEquivalence() {
        return MoreObjects.firstNonNull(valueEquivalence, getValueStrength().defaultEquivalence());
      }
    
      /**
       * Sets the minimum total size for the internal hash tables. For example, if the initial capacity
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

      public void testDrainValueReferenceQueueOnWrite() {
        for (MapMaker maker : allWeakValueStrengthMakers()) {
          MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(maker.concurrencyLevel(1));
          if (maker.getValueStrength() == Strength.WEAK) {
            Segment<Object, Object, ?, ?> segment = map.segments[0];
    
            Object keyOne = new Object();
            int hashOne = map.hash(keyOne);
            Object valueOne = new Object();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

      public void testDrainValueReferenceQueueOnWrite() {
        for (MapMaker maker : allWeakValueStrengthMakers()) {
          MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(maker.concurrencyLevel(1));
          if (maker.getValueStrength() == Strength.WEAK) {
            Segment<Object, Object, ?, ?> segment = map.segments[0];
    
            Object keyOne = new Object();
            int hashOne = map.hash(keyOne);
            Object valueOne = new Object();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 35.1K bytes
    - Viewed (0)
Back to top