Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for defaultEquivalence (0.1 sec)

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

        assertSame(Strength.STRONG, map.keyStrength);
        assertSame(Strength.STRONG, map.valueStrength);
        assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence);
        assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence);
    
        assertEquals(0, map.expireAfterAccessNanos);
        assertEquals(0, map.expireAfterWriteNanos);
        assertEquals(0, map.refreshNanos);
    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

        assertSame(Strength.STRONG, map.keyStrength);
        assertSame(Strength.STRONG, map.valueStrength);
        assertSame(map.keyStrength.defaultEquivalence(), map.keyEquivalence);
        assertSame(map.valueStrength.defaultEquivalence(), map.valueEquivalence);
    
        assertEquals(0, map.expireAfterAccessNanos);
        assertEquals(0, map.expireAfterWriteNanos);
        assertEquals(0, map.refreshNanos);
    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/collect/MapMakerInternalMap.java

        }
        throw new AssertionError();
      }
    
      enum Strength {
        STRONG {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.equals();
          }
        },
    
        WEAK {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.identity();
          }
        };
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        }
        throw new AssertionError();
      }
    
      enum Strength {
        STRONG {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.equals();
          }
        },
    
        WEAK {
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.identity();
          }
        };
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/CacheBuilder.java

        keyEquivalence = checkNotNull(equivalence);
        return this;
      }
    
      Equivalence<Object> getKeyEquivalence() {
        return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence());
      }
    
      /**
       * Sets a custom {@code Equivalence} strategy for comparing values.
       *
       * <p>By default, the cache uses {@link Equivalence#identity} to determine value equality when
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 52K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/CacheBuilder.java

        keyEquivalence = checkNotNull(equivalence);
        return this;
      }
    
      Equivalence<Object> getKeyEquivalence() {
        return MoreObjects.firstNonNull(keyEquivalence, getKeyStrength().defaultEquivalence());
      }
    
      /**
       * Sets a custom {@code Equivalence} strategy for comparing values.
       *
       * <p>By default, the cache uses {@link Equivalence#identity} to determine value equality when
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/LocalCache.java

            return (weight == 1)
                ? new StrongValueReference<K, V>(value)
                : new WeightedStrongValueReference<K, V>(value, weight);
          }
    
          @Override
          Equivalence<Object> defaultEquivalence() {
            return Equivalence.equals();
          }
        },
        SOFT {
          @Override
          <K, V> ValueReference<K, V> referenceValue(
    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