Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 289 for replica (0.07 sec)

  1. 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)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt

        val mainFiles = mainFiles()
        return mainFiles
          .map {
            val suffix = it.path.replace("${prefix}samples/guide/src/main/java/", "")
            suffix
              .replace("(.*)\\.java".toRegex()) { mr ->
                mr.groupValues[1].replace('/', '.')
              }.replace("(.*)\\.kt".toRegex()) { mr ->
                mr.groupValues[1].replace('/', '.') + "Kt"
              }
          }.sorted()
      }
    }
    
    @Disabled("Don't run by default")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java

      public void testReplace_supportedPresent() {
        assertEquals(v0(), getMap().replace(k0(), v3()));
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplace_supportedPresentNoChange() {
        assertEquals(v0(), getMap().replace(k0(), v0()));
        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java

        try {
          assertEquals(v0(), getMap().replace(k0(), v3()));
          expectReplacement(entry(k0(), v3()));
        } catch (ClassCastException tolerated) { // for ClassToInstanceMap
          expectUnchanged();
        }
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplace_supportedPresentNoChange() {
        assertEquals(v0(), getMap().replace(k0(), v0()));
        expectUnchanged();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ForwardingConcurrentMap.java

      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V replace(K key, V value) {
        return delegate().replace(key, value);
      }
    
      @CanIgnoreReturnValue
      @Override
      @SuppressWarnings("nullness") // https://github.com/jspecify/jdk/issues/118
      public boolean replace(K key, V oldValue, V newValue) {
        return delegate().replace(key, oldValue, newValue);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 18 16:58:16 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/RemovalCause.java

       * 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;
        }
      },
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/audit/SecurityAuditLogger.java

            if (value == null) {
                return "";
            }
            return value.replace("\\", "\\\\")
                    .replace("\"", "\\\"")
                    .replace("\b", "\\b")
                    .replace("\f", "\\f")
                    .replace("\n", "\\n")
                    .replace("\r", "\\r")
                    .replace("\t", "\\t");
        }
    
        private void logAsText(AuditEntry entry) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  8. maven-tests/mvnw.cmd

      $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace '^.*'+$MVNW_REPO_PATTERN,'')"
    }
    $distributionUrlName = $distributionUrl -replace '^.*/',''
    $distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$',''
    $MAVEN_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain"
    if ($env:MAVEN_USER_HOME) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 12 12:05:57 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

                final int pos = buf.indexOf("y");
                if (pos != -1) {
                    buf.replace(pos, pos + 1, "yy");
                }
            }
            if (buf.indexOf("MM") == -1) {
                final int pos = buf.indexOf("M");
                if (pos != -1) {
                    buf.replace(pos, pos + 1, "MM");
                }
            }
            if (buf.indexOf("dd") == -1) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  10. 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();
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top