Home
last modified time | relevance | path

Searched refs:MathPreconditions (Results 1 – 10 of 10) sorted by relevance

/external/guava/guava-tests/test/com/google/common/math/
DMathPreconditionsTest.java35 MathPreconditions.checkPositive("int", 0); in testCheckPositive_zeroInt()
41 MathPreconditions.checkPositive("int", Integer.MAX_VALUE); in testCheckPositive_maxInt()
46 MathPreconditions.checkPositive("int", Integer.MIN_VALUE); in testCheckPositive_minInt()
52 MathPreconditions.checkPositive("int", 1); in testCheckPositive_positiveInt()
57 MathPreconditions.checkPositive("int", -1); in testCheckPositive_negativeInt()
64 MathPreconditions.checkPositive("long", 0L); in testCheckPositive_zeroLong()
70 MathPreconditions.checkPositive("long", Long.MAX_VALUE); in testCheckPositive_maxLong()
75 MathPreconditions.checkPositive("long", Long.MIN_VALUE); in testCheckPositive_minLong()
81 MathPreconditions.checkPositive("long", 1); in testCheckPositive_positiveLong()
86 MathPreconditions.checkPositive("long", -1L); in testCheckPositive_negativeLong()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DIntMath.java20 import static com.google.common.math.MathPreconditions.checkNoOverflow;
21 import static com.google.common.math.MathPreconditions.checkNonNegative;
22 import static com.google.common.math.MathPreconditions.checkPositive;
23 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
DLongMath.java20 import static com.google.common.math.MathPreconditions.checkNonNegative;
21 import static com.google.common.math.MathPreconditions.checkPositive;
22 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
DDoubleMath.java19 import static com.google.common.math.MathPreconditions.checkNonNegative;
137 MathPreconditions.checkNonNegative("tolerance", tolerance); in fuzzyEquals()
DBigIntegerMath.java21 import static com.google.common.math.MathPreconditions.checkNonNegative;
22 import static com.google.common.math.MathPreconditions.checkPositive;
23 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
/external/guava/guava/src/com/google/common/math/
DDoubleMath.java26 import static com.google.common.math.MathPreconditions.checkInRange;
27 import static com.google.common.math.MathPreconditions.checkNonNegative;
28 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
352 MathPreconditions.checkNonNegative("tolerance", tolerance); in fuzzyEquals()
DMathPreconditions.java29 final class MathPreconditions { class
97 private MathPreconditions() {} in MathPreconditions() method in MathPreconditions
DIntMath.java21 import static com.google.common.math.MathPreconditions.checkNoOverflow;
22 import static com.google.common.math.MathPreconditions.checkNonNegative;
23 import static com.google.common.math.MathPreconditions.checkPositive;
24 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
DLongMath.java21 import static com.google.common.math.MathPreconditions.checkNoOverflow;
22 import static com.google.common.math.MathPreconditions.checkNonNegative;
23 import static com.google.common.math.MathPreconditions.checkPositive;
24 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;
DBigIntegerMath.java21 import static com.google.common.math.MathPreconditions.checkNonNegative;
22 import static com.google.common.math.MathPreconditions.checkPositive;
23 import static com.google.common.math.MathPreconditions.checkRoundingUnnecessary;