Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 86 for copySign (0.05 seconds)

  1. android/guava/src/com/google/common/math/DoubleMath.java

       * @since 13.0
       */
      public static boolean fuzzyEquals(double a, double b, double tolerance) {
        MathPreconditions.checkNonNegative("tolerance", tolerance);
        return Math.copySign(a - b, 1.0) <= tolerance
            // copySign(x, 1.0) is a branch-free version of abs(x), but with different NaN semantics
            || (a == b) // needed to ensure that infinities equal themselves
            || (Double.isNaN(a) && Double.isNaN(b));
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/beans/util/CopyOptions.java

                return true;
            }
            return true;
        }
    
        /**
         * Returns {@literal true} if the value is a target for copying.
         *
         * @param value
         *            The source value to be copied
         * @return {@literal true} if the value is a target for copying
         */
        protected boolean isTargetValue(final Object value) {
            if (value == null) {
                return !excludesNull;
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/SparseImmutableTable.java

        this.columnMap = columnBuilder.buildOrThrow();
      }
    
      @Override
      public ImmutableMap<C, Map<R, V>> columnMap() {
        // Casts without copying.
        return ImmutableMap.copyOf(columnMap);
      }
    
      @Override
      public ImmutableMap<R, Map<C, V>> rowMap() {
        // Casts without copying.
        return ImmutableMap.copyOf(rowMap);
      }
    
      @Override
      public int size() {
        return cellRowIndices.length;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  4. README.md

    // Bean metadata introspection
    BeanDesc beanDesc = BeanDescFactory.getBeanDesc(MyBean.class);
    PropertyDesc nameProperty = beanDesc.getPropertyDesc("name");
    nameProperty.setValue(bean, "John Doe");
    
    // Bean copying with flexible options
    BeanUtil.copyBeanToBean(source, destination);
    BeanUtil.copyBeanToBean(source, destination, options -> 
        options.exclude("password", "internalId"));
    
    // Convert between beans and maps
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sun Aug 31 02:56:02 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/SparseImmutableTable.java

        this.columnMap = columnBuilder.buildOrThrow();
      }
    
      @Override
      public ImmutableMap<C, Map<R, V>> columnMap() {
        // Casts without copying.
        return ImmutableMap.copyOf(columnMap);
      }
    
      @Override
      public ImmutableMap<R, Map<C, V>> rowMap() {
        // Casts without copying.
        return ImmutableMap.copyOf(rowMap);
      }
    
      @Override
      public int size() {
        return cellRowIndices.length;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 5.3K bytes
    - Click Count (1)
  6. guava/src/com/google/common/collect/DenseImmutableTable.java

          return super.writeReplace();
        }
      }
    
      @Override
      public ImmutableMap<C, Map<R, V>> columnMap() {
        // Casts without copying.
        return ImmutableMap.copyOf(columnMap);
      }
    
      @Override
      public ImmutableMap<R, Map<C, V>> rowMap() {
        // Casts without copying.
        return ImmutableMap.copyOf(rowMap);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/DenseImmutableTable.java

          return super.writeReplace();
        }
      }
    
      @Override
      public ImmutableMap<C, Map<R, V>> columnMap() {
        // Casts without copying.
        return ImmutableMap.copyOf(columnMap);
      }
    
      @Override
      public ImmutableMap<R, Map<C, V>> rowMap() {
        // Casts without copying.
        return ImmutableMap.copyOf(rowMap);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ProjectArtifactMetadata.java

                Files.createDirectories(destination.toPath().getParent());
                Files.copy(file.toPath(), destination.toPath());
            } catch (IOException e) {
                throw new RepositoryMetadataStoreException("Error copying POM to the local repository.", e);
            }
        }
    
        @Override
        public String toString() {
            return "project information for " + artifact.getArtifactId() + " " + artifact.getVersion();
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 4K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/io/ReaderInputStream.java

    import java.nio.charset.CodingErrorAction;
    import java.util.Arrays;
    
    /**
     * An {@link InputStream} that converts characters from a {@link Reader} into bytes using an
     * arbitrary Charset.
     *
     * <p>This is an alternative to copying the data to an {@code OutputStream} via a {@code Writer},
     * which is necessarily blocking. By implementing an {@code InputStream} it allows consumers to
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:36:11 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeResult.java

     * @param errorPoms the set of POMs that had errors
     */
    public record UpgradeResult(Set<Path> processedPoms, Set<Path> modifiedPoms, Set<Path> errorPoms) {
    
        public UpgradeResult {
            // Defensive copying to ensure immutability
            processedPoms = Set.copyOf(processedPoms);
            modifiedPoms = Set.copyOf(modifiedPoms);
            errorPoms = Set.copyOf(errorPoms);
        }
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 3.9K bytes
    - Click Count (0)
Back to Top