- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 264 for replace (0.17 sec)
-
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) -
guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
assertEquals(Integer.valueOf(1), map.replace("foo", 2)); assertNull(map.replace("bar", 3)); assertEquals(Integer.valueOf(2), map.get("foo")); assertFalse(map.containsKey("bar")); } public void testReplaceConditional() { TestMap map = new TestMap(); map.put("foo", 1); assertFalse(map.replace("foo", 2, 3)); assertFalse(map.replace("bar", 1, 2));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.4K bytes - Viewed (0) -
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) -
src/test/java/org/codelibs/core/io/ResourceTraversalTest.java
assertTrue(count > 0); } /** * @throws Exception */ @Test public void testForEachJarFile() throws Exception { final String classFilePath = TestCase.class.getName().replace('.', '/') + ".class"; final URL classURL = ResourceUtil.getResource(classFilePath); final JarURLConnection con = (JarURLConnection) classURL.openConnection();
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/RelationshipTester.java
if (!condition) { throw new AssertionFailedError( template .replace("$RELATIONSHIP", relationshipName) .replace("$HASH", hashName) .replace("$ITEM", itemReporter.reportItem(item)) .replace("$OTHER", itemReporter.reportItem(other))); } } private Item<T> getItem(int groupNumber, int itemNumber) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Apr 25 11:57:12 GMT 2023 - 5.9K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/JdkVersionProfileActivator.java
ranges.add(new RangeValue(token.replace("[", ""), true)); } else if (token.startsWith("(")) { ranges.add(new RangeValue(token.replace("(", ""), false)); } else if (token.endsWith("]")) { ranges.add(new RangeValue(token.replace("]", ""), true)); } else if (token.endsWith(")")) { ranges.add(new RangeValue(token.replace(")", ""), false));
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 6.2K bytes - Viewed (0) -
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) -
guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
long newValue = random.nextInt(MAX_ADDEND); for (int i = 0; i < ITERATIONS; i++) { long before = map.get(key); assertFalse(map.replace(key, before + 1, newValue + 1)); assertFalse(map.replace(key, before - 1, newValue - 1)); assertTrue(map.replace(key, before, newValue)); long after = map.get(key); assertEquals(newValue, after); newValue += newValue; }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 17.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java
public void testReplaceEntry_supportedPresent() { assertTrue(getMap().replace(k0(), v0(), v3())); expectReplacement(entry(k0(), v3())); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testReplaceEntry_supportedPresentUnchanged() { assertTrue(getMap().replace(k0(), v0(), v0())); expectUnchanged(); } @MapFeature.Require(SUPPORTS_PUT)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 5.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ThemeHelper.java
Files.copy(zis, path, StandardCopyOption.REPLACE_EXISTING); } else if ("css".equals(names[0])) { names[0] = themeName; final Path path = ResourceUtil.getCssPath(names); Files.createDirectories(path.getParent()); Files.copy(zis, path, StandardCopyOption.REPLACE_EXISTING); } else if ("js".equals(names[0])) {
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 5.7K bytes - Viewed (0)