Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for Sqrt (0.03 seconds)

  1. guava/src/com/google/common/base/Preconditions.java

     *
     * {@snippet :
     * public static double sqrt(double value) {
     *   if (value < 0) {
     *     throw new IllegalArgumentException("input is negative: " + value);
     *   }
     *   // calculate square root
     * }
     * }
     *
     * <p>to be replaced with the more compact
     *
     * {@snippet :
     * public static double sqrt(double value) {
     *   checkArgument(value >= 0, "input is negative: %s", value);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 53.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/base/Preconditions.java

     *
     * {@snippet :
     * public static double sqrt(double value) {
     *   if (value < 0) {
     *     throw new IllegalArgumentException("input is negative: " + value);
     *   }
     *   // calculate square root
     * }
     * }
     *
     * <p>to be replaced with the more compact
     *
     * {@snippet :
     * public static double sqrt(double value) {
     *   checkArgument(value >= 0, "input is negative: %s", value);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 53.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/Multimaps.java

       *
       * {@snippet :
       * ListMultimap<String, Integer> multimap = ImmutableListMultimap.of("a", 4, "a", 16, "b", 9);
       * Function<Integer, Double> sqrt = (Integer in) -> Math.sqrt((int) in);
       * ListMultimap<String, Double> transformed = Multimaps.transformValues(multimap, sqrt);
       * System.out.println(transformed);
       * }
       *
       * ... prints {@code {a=[2.0, 4.0], b=[3.0]}}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 86K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/Multimaps.java

       *
       * {@snippet :
       * ListMultimap<String, Integer> multimap = ImmutableListMultimap.of("a", 4, "a", 16, "b", 9);
       * Function<Integer, Double> sqrt = (Integer in) -> Math.sqrt((int) in);
       * ListMultimap<String, Double> transformed = Multimaps.transformValues(multimap, sqrt);
       * System.out.println(transformed);
       * }
       *
       * ... prints {@code {a=[2.0, 4.0], b=[3.0]}}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 86.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(ImmutableSet.of(1, 2, 3), bimap.inverse().keySet());
        assertEquals(ImmutableSet.of(1, 2, 3), sync.inverse().keySet());
      }
    
      private static final Function<Integer, Double> SQRT_FUNCTION = in -> Math.sqrt(in);
    
      public void testTransformValues() {
        Map<String, Integer> map = ImmutableMap.of("a", 4, "b", 9);
        Map<String, Double> transformed = transformValues(map, SQRT_FUNCTION);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
Back to Top