Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for equivalent (0.26 sec)

  1. guava/src/com/google/common/cache/LocalCache.java

              if (e.getHash() == hash
                  && entryKey != null
                  && map.keyEquivalence.equivalent(key, entryKey)) {
                ValueReference<K, V> valueReference = e.getValueReference();
                V entryValue = valueReference.get();
    
                RemovalCause cause;
                if (map.valueEquivalence.equivalent(value, entryValue)) {
                  cause = RemovalCause.EXPLICIT;
    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)
  2. android/guava/src/com/google/common/cache/LocalCache.java

              if (e.getHash() == hash
                  && entryKey != null
                  && map.keyEquivalence.equivalent(key, entryKey)) {
                ValueReference<K, V> valueReference = e.getValueReference();
                V entryValue = valueReference.get();
    
                RemovalCause cause;
                if (map.valueEquivalence.equivalent(value, entryValue)) {
                  cause = RemovalCause.EXPLICIT;
    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)
  3. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       * captured by the returned {@link ClosingFuture}).
       *
       * <p>If this {@code ClosingFuture} succeeds, the derived one will be equivalent to the one
       * returned by the function.
       *
       * <p>If this {@code ClosingFuture} fails, the function will not be called, and the derived {@code
       * ClosingFuture} will be equivalent to this one.
       *
       * <p>If the function throws an exception, that exception is used as the result of the derived
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

                  ListenableFuture<String> a, ListenableFuture<String> b) {
                return successfulAsList(ImmutableSet.of(a, b));
              }
            };
      }
    
      /**
       * Very rough equivalent of a timed get, produced by calling the no-arg get method in another
       * thread and waiting a short time for it.
       *
       * <p>We need this to test the behavior of no-arg get methods without hanging the main test thread
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

                  ListenableFuture<String> a, ListenableFuture<String> b) {
                return successfulAsList(ImmutableSet.of(a, b));
              }
            };
      }
    
      /**
       * Very rough equivalent of a timed get, produced by calling the no-arg get method in another
       * thread and waiting a short time for it.
       *
       * <p>We need this to test the behavior of no-arg get methods without hanging the main test thread
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertFalse(map.expiresAfterAccess());
        assertFalse(map.refreshes());
      }
    
      public void testSetKeyEquivalence() {
        Equivalence<Object> testEquivalence =
            new Equivalence<Object>() {
              @Override
              protected boolean doEquivalent(Object a, Object b) {
                return false;
              }
    
              @Override
              protected int doHash(Object t) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertFalse(map.expiresAfterAccess());
        assertFalse(map.refreshes());
      }
    
      public void testSetKeyEquivalence() {
        Equivalence<Object> testEquivalence =
            new Equivalence<Object>() {
              @Override
              protected boolean doEquivalent(Object a, Object b) {
                return false;
              }
    
              @Override
              protected int doHash(Object t) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

       * @param valueEquivalence the equivalence relationship to use to compare values
       * @return the difference between the two maps
       * @since 10.0
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          MapDifference<K, V> difference(
              Map<? extends K, ? extends V> left,
              Map<? extends K, ? extends V> right,
              Equivalence<? super @NonNull V> valueEquivalence) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
Back to top