Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 208 for replaced (0.19 sec)

  1. android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java

            // don't compareAndSet a zero
            if (map.replace(key, atomic, new AtomicLong(newValue))) {
              return 0L;
            }
            // atomic replaced
            continue;
          }
    
          return oldValue;
        }
      }
    
      /**
       * If {@code (key, expectedOldValue)} is currently in the map, this method replaces {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/escape/Escapers.java

        /**
         * Adds a replacement string for the given input character. The specified character will be
         * replaced by the given string whenever it occurs in the input, irrespective of whether it lies
         * inside or outside the 'safe' range.
         *
         * @param c the character to be replaced
         * @param replacement the string to replace the given character
         * @return the builder instance
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/RemovalCause.java

      },
    
      /**
       * The entry itself was not actually removed, but its value was replaced by the user. This can
       * result from the user invoking {@link Cache#put}, {@link LoadingCache#refresh}, {@link Map#put},
       * {@link Map#putAll}, {@link ConcurrentMap#replace(Object, Object)}, or {@link
       * ConcurrentMap#replace(Object, Object, Object)}.
       */
      REPLACED {
        @Override
        boolean wasEvicted() {
          return false;
        }
      },
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java

        }
    
        // Test that 0xFFFE and 0xFFFF are replaced with 0xFFFD
        assertEscaping(xmlEscaper, "\uFFFD", '\uFFFE');
        assertEscaping(xmlEscaper, "\uFFFD", '\uFFFF');
    
        assertEquals(
            "0xFFFE is forbidden and should be replaced during escaping",
            "[\uFFFD]",
            xmlEscaper.escape("[\ufffe]"));
        assertEquals(
            "0xFFFF is forbidden and should be replaced during escaping",
            "[\uFFFD]",
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 4.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/RemovalCause.java

      },
    
      /**
       * The entry itself was not actually removed, but its value was replaced by the user. This can
       * result from the user invoking {@link Cache#put}, {@link LoadingCache#refresh}, {@link Map#put},
       * {@link Map#putAll}, {@link ConcurrentMap#replace(Object, Object)}, or {@link
       * ConcurrentMap#replace(Object, Object, Object)}.
       */
      REPLACED {
        @Override
        boolean wasEvicted() {
          return false;
        }
      },
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ConcurrentHashMultiset.java

                  || countMap.replace(element, existingCounter, newCounter);
            }
          } else {
            if (existingCounter.compareAndSet(oldValue, newCount)) {
              if (newCount == 0) {
                // Just CASed to 0; remove the entry to clean up the map. If the removal fails,
                // another thread has already replaced it with a new counter, which is fine.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/RemovalNotificationTest.java

      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                RemovalNotification.create("one", 1, RemovalCause.EXPLICIT),
                RemovalNotification.create("one", 1, RemovalCause.REPLACED))
            .addEqualityGroup(RemovalNotification.create("1", 1, RemovalCause.EXPLICIT))
            .addEqualityGroup(RemovalNotification.create("one", 2, RemovalCause.EXPLICIT))
            .testEquals();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/RemovalNotificationTest.java

      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                RemovalNotification.create("one", 1, RemovalCause.EXPLICIT),
                RemovalNotification.create("one", 1, RemovalCause.REPLACED))
            .addEqualityGroup(RemovalNotification.create("1", 1, RemovalCause.EXPLICIT))
            .addEqualityGroup(RemovalNotification.create("one", 2, RemovalCause.EXPLICIT))
            .testEquals();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/RemovalListener.java

    /**
     * An object that can receive a notification when an entry is removed from a cache. The removal
     * resulting in notification could have occurred to an entry being manually removed or replaced, or
     * due to eviction resulting from timed expiration, exceeding a maximum size, or garbage collection.
     *
     * <p>An instance may be called concurrently by multiple threads to process different entries.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/RemovalNotification.java

      public RemovalCause getCause() {
        return cause;
      }
    
      /**
       * Returns {@code true} if there was an automatic removal due to eviction (the cause is neither
       * {@link RemovalCause#EXPLICIT} nor {@link RemovalCause#REPLACED}).
       */
      public boolean wasEvicted() {
        return cause.wasEvicted();
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 20:46:24 GMT 2022
    - 2.5K bytes
    - Viewed (0)
Back to top