Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Project (0.13 sec)

  1. android/guava/src/com/google/common/primitives/Doubles.java

       * @since 21.0
       */
      public static double constrainToRange(double value, double min, double max) {
        // avoid auto-boxing by not using Preconditions.checkArgument(); see Guava issue 3984
        // Reject NaN by testing for the good case (min <= max) instead of the bad (min > max).
        if (min <= max) {
          return Math.min(Math.max(value, min), max);
        }
        throw new IllegalArgumentException(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 27.1K bytes
    - Viewed (0)
Back to top