Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MathPreconditions (0.08 sec)

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

    import java.math.BigInteger;
    import java.math.RoundingMode;
    
    /**
     * A collection of preconditions for math functions.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class MathPreconditions {
      @CanIgnoreReturnValue
      static int checkPositive(String role, int x) {
        if (x <= 0) {
          throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
        }
        return x;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/ToDoubleRounder.java

     * the License.
     */
    
    package com.google.common.math;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
    
    import com.google.common.annotations.GwtIncompatible;
    import java.math.RoundingMode;
    
    /**
     * Helper type to implement rounding {@code X} to a representable {@code double} value according to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/BigIntegerMath.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.math.MathPreconditions.checkNonNegative;
    import static com.google.common.math.MathPreconditions.checkPositive;
    import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.FLOOR;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/LongMath.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.math.MathPreconditions.checkNoOverflow;
    import static com.google.common.math.MathPreconditions.checkNonNegative;
    import static com.google.common.math.MathPreconditions.checkPositive;
    import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
    import static java.lang.Math.abs;
    import static java.lang.Math.min;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top