Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 134 for Clone (0.26 sec)

  1. maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

            clone.setResolved(artifact.isResolved());
            clone.setFile(artifact.getFile());
    
            clone.setAvailableVersions(copyList(artifact.getAvailableVersions()));
            if (artifact.getVersion() != null) {
                clone.setBaseVersion(artifact.getBaseVersion());
            }
            clone.setDependencyFilter(artifact.getDependencyFilter());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 06 08:51:18 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

      public void testSingleQuantile_median() {
        double referenceValue = REFERENCE_ALGORITHM.singleQuantile(1, 2, dataset.clone());
        for (QuantilesAlgorithm algorithm : NON_REFERENCE_ALGORITHMS) {
          assertWithMessage("Mismatch between %s and %s", algorithm, REFERENCE_ALGORITHM)
              .that(algorithm.singleQuantile(1, 2, dataset.clone()))
              .isWithin(ALLOWED_ERROR)
              .of(referenceValue);
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/settings/SettingsUtilsTest.java

    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/hash/MessageDigestCreationBenchmark.java

          retValue ^= MessageDigest.getInstance(algorithm).getDigestLength();
        }
        return retValue;
      }
    
      @Benchmark
      int clone(int reps) throws Exception {
        int retValue = 0;
        for (int i = 0; i < reps; i++) {
          retValue ^= ((MessageDigest) md.clone()).getDigestLength();
        }
        return retValue;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.6K bytes
    - Viewed (0)
  5. maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java

            MavenProject clonedProject = projectToClone.clone();
            assertEquals(projectToClone.getFile(), clonedProject.getFile(), "POM file is preserved across clone");
            assertEquals(
                    projectToClone.getBasedir(), clonedProject.getBasedir(), "Base directory is preserved across clone");
        }
    
        @Test
        void testUndefinedOutputDirectory() throws Exception {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

        this.bytes = bytes;
        this.supportsClone = supportsClone(prototype);
      }
    
      private static boolean supportsClone(MessageDigest digest) {
        try {
          Object unused = digest.clone();
          return true;
        } catch (CloneNotSupportedException e) {
          return false;
        }
      }
    
      @Override
      public int bits() {
        return bytes * Byte.SIZE;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 5K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

        for (int i = 0; i < reps; i++) {
          Integer[] copy = inputArrays[i & 0xFF].clone();
          Arrays.sort(copy);
          tmp += copy[0];
        }
        return tmp;
      }
    
      @Benchmark
      int arraysSortOrderingNatural(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          Integer[] copy = inputArrays[i & 0xFF].clone();
          Arrays.sort(copy, Ordering.natural());
          tmp += copy[0];
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/MacHashFunction.java

        this.supportsClone = supportsClone(prototype);
      }
    
      @Override
      public int bits() {
        return bits;
      }
    
      private static boolean supportsClone(Mac mac) {
        try {
          Object unused = mac.clone();
          return true;
        } catch (CloneNotSupportedException e) {
          return false;
        }
      }
    
      private static Mac getMac(String algorithmName, Key key) {
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 15 22:31:55 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

            datasets[i][j] = rng.nextDouble();
          }
        }
      }
    
      private double[] dataset(int i) {
        // We must test on a fresh clone of the dataset each time. Doing sorts and quickselects on a
        // dataset which is already sorted or partially sorted is cheating.
        return datasets[i & 0xFF].clone();
      }
    
      @Benchmark
      double median(int reps) {
        double dummy = 0.0;
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/Platform.java

     *
     * <p>This class is emulated in GWT.
     *
     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
        return array.clone();
      }
    
      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Aug 04 01:39:13 GMT 2022
    - 1.3K bytes
    - Viewed (0)
Back to top