/external/guava/android/guava-tests/test/com/google/common/math/ |
D | MathPreconditionsTest.java | 119 MathPreconditions.checkNonNegative("int", 0); in testCheckNonNegative_zeroInt() 123 MathPreconditions.checkNonNegative("int", Integer.MAX_VALUE); in testCheckNonNegative_maxInt() 128 MathPreconditions.checkNonNegative("int", Integer.MIN_VALUE); in testCheckNonNegative_minInt() 135 MathPreconditions.checkNonNegative("int", 1); in testCheckNonNegative_positiveInt() 140 MathPreconditions.checkNonNegative("int", -1); in testCheckNonNegative_negativeInt() 147 MathPreconditions.checkNonNegative("long", 0L); in testCheckNonNegative_zeroLong() 151 MathPreconditions.checkNonNegative("long", Long.MAX_VALUE); in testCheckNonNegative_maxLong() 156 MathPreconditions.checkNonNegative("long", Long.MIN_VALUE); in testCheckNonNegative_minLong() 163 MathPreconditions.checkNonNegative("long", 1L); in testCheckNonNegative_positiveLong() 168 MathPreconditions.checkNonNegative("int", -1L); in testCheckNonNegative_negativeLong() [all …]
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | MathPreconditionsTest.java | 119 MathPreconditions.checkNonNegative("int", 0); in testCheckNonNegative_zeroInt() 123 MathPreconditions.checkNonNegative("int", Integer.MAX_VALUE); in testCheckNonNegative_maxInt() 128 MathPreconditions.checkNonNegative("int", Integer.MIN_VALUE); in testCheckNonNegative_minInt() 135 MathPreconditions.checkNonNegative("int", 1); in testCheckNonNegative_positiveInt() 140 MathPreconditions.checkNonNegative("int", -1); in testCheckNonNegative_negativeInt() 147 MathPreconditions.checkNonNegative("long", 0L); in testCheckNonNegative_zeroLong() 151 MathPreconditions.checkNonNegative("long", Long.MAX_VALUE); in testCheckNonNegative_maxLong() 156 MathPreconditions.checkNonNegative("long", Long.MIN_VALUE); in testCheckNonNegative_minLong() 163 MathPreconditions.checkNonNegative("long", 1L); in testCheckNonNegative_positiveLong() 168 MathPreconditions.checkNonNegative("int", -1L); in testCheckNonNegative_negativeLong() [all …]
|
/external/guava/android/guava/src/com/google/common/math/ |
D | IntMath.java | 20 import static com.google.common.math.MathPreconditions.checkNonNegative; 228 checkNonNegative("exponent", k); in pow() 270 checkNonNegative("x", x); in sqrt() 410 checkNonNegative("a", a); in gcd() 411 checkNonNegative("b", b); in gcd() 491 checkNonNegative("exponent", k); in checkedPow() 569 checkNonNegative("exponent", k); 623 checkNonNegative("n", n); 650 checkNonNegative("n", n); 651 checkNonNegative("k", k);
|
D | MathPreconditions.java | 52 static int checkNonNegative(@NullableDecl String role, int x) { in checkNonNegative() method in MathPreconditions 59 static long checkNonNegative(@NullableDecl String role, long x) { in checkNonNegative() method in MathPreconditions 66 static BigInteger checkNonNegative(@NullableDecl String role, BigInteger x) { in checkNonNegative() method in MathPreconditions 73 static double checkNonNegative(@NullableDecl String role, double x) { in checkNonNegative() method in MathPreconditions
|
D | LongMath.java | 20 import static com.google.common.math.MathPreconditions.checkNonNegative; 270 checkNonNegative("exponent", k); in pow() 314 checkNonNegative("x", x); in sqrt() 501 checkNonNegative("a", a); in gcd() 502 checkNonNegative("b", b); in gcd() 604 checkNonNegative("exponent", k); in checkedPow() 718 checkNonNegative("exponent", k); in saturatedPow() 775 checkNonNegative("n", n); in factorial() 810 checkNonNegative("n", n); in binomial() 811 checkNonNegative("k", k); in binomial() [all …]
|
D | BigIntegerMath.java | 19 import static com.google.common.math.MathPreconditions.checkNonNegative; 229 checkNonNegative("x", x); in sqrt() 391 checkNonNegative("n", n); in factorial() 475 checkNonNegative("n", n); in binomial() 476 checkNonNegative("k", k); in binomial()
|
D | DoubleMath.java | 25 import static com.google.common.math.MathPreconditions.checkNonNegative; 302 checkNonNegative("n", n); in factorial() 360 MathPreconditions.checkNonNegative("tolerance", tolerance); in fuzzyEquals()
|
/external/guava/guava/src/com/google/common/math/ |
D | IntMath.java | 20 import static com.google.common.math.MathPreconditions.checkNonNegative; 228 checkNonNegative("exponent", k); in pow() 270 checkNonNegative("x", x); in sqrt() 410 checkNonNegative("a", a); in gcd() 411 checkNonNegative("b", b); in gcd() 491 checkNonNegative("exponent", k); in checkedPow() 569 checkNonNegative("exponent", k); 623 checkNonNegative("n", n); 650 checkNonNegative("n", n); 651 checkNonNegative("k", k);
|
D | MathPreconditions.java | 52 static int checkNonNegative(@Nullable String role, int x) { in checkNonNegative() method in MathPreconditions 59 static long checkNonNegative(@Nullable String role, long x) { in checkNonNegative() method in MathPreconditions 66 static BigInteger checkNonNegative(@Nullable String role, BigInteger x) { in checkNonNegative() method in MathPreconditions 73 static double checkNonNegative(@Nullable String role, double x) { in checkNonNegative() method in MathPreconditions
|
D | LongMath.java | 20 import static com.google.common.math.MathPreconditions.checkNonNegative; 270 checkNonNegative("exponent", k); in pow() 314 checkNonNegative("x", x); in sqrt() 501 checkNonNegative("a", a); in gcd() 502 checkNonNegative("b", b); in gcd() 604 checkNonNegative("exponent", k); in checkedPow() 718 checkNonNegative("exponent", k); in saturatedPow() 775 checkNonNegative("n", n); in factorial() 810 checkNonNegative("n", n); in binomial() 811 checkNonNegative("k", k); in binomial() [all …]
|
D | BigIntegerMath.java | 19 import static com.google.common.math.MathPreconditions.checkNonNegative; 229 checkNonNegative("x", x); in sqrt() 391 checkNonNegative("n", n); in factorial() 475 checkNonNegative("n", n); in binomial() 476 checkNonNegative("k", k); in binomial()
|
/external/dagger2/java/dagger/example/atm/ |
D | InMemoryDatabase.java | 53 checkNonNegative(amount, "deposit"); in deposit() 59 checkNonNegative(amount, "withdraw"); in withdraw() 63 private void checkNonNegative(BigDecimal amount, String action) { in checkNonNegative() method in InMemoryDatabase.InMemoryAccount
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/inference/ |
D | ChiSquareTestImpl.java | 77 checkNonNegative(observed); in chiSquare() 236 checkNonNegative(observed1); in chiSquareDataSetsComparison() 237 checkNonNegative(observed2); in chiSquareDataSetsComparison() 341 checkNonNegative(in); in checkArray() 386 private void checkNonNegative(long[] in) throws IllegalArgumentException { in checkNonNegative() method in ChiSquareTestImpl 402 private void checkNonNegative(long[][] in) throws IllegalArgumentException { in checkNonNegative() method in ChiSquareTestImpl
|
/external/guava/android/guava/src/com/google/common/graph/ |
D | NetworkBuilder.java | 20 import static com.google.common.graph.Graphs.checkNonNegative; 147 this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount)); in expectedNodeCount() 157 this.expectedEdgeCount = Optional.of(checkNonNegative(expectedEdgeCount)); in expectedEdgeCount()
|
D | AbstractDirectedNetworkConnections.java | 21 import static com.google.common.graph.Graphs.checkNonNegative; 55 this.selfLoopCount = checkNonNegative(selfLoopCount); in AbstractDirectedNetworkConnections() 108 checkNonNegative(--selfLoopCount);
|
D | StandardMutableValueGraph.java | 23 import static com.google.common.graph.Graphs.checkNonNegative; 145 checkNonNegative(edgeCount); in removeNode() 164 checkNonNegative(--edgeCount); in removeEdge()
|
D | GraphBuilder.java | 21 import static com.google.common.graph.Graphs.checkNonNegative; 131 this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount)); in expectedNodeCount()
|
D | ValueGraphBuilder.java | 21 import static com.google.common.graph.Graphs.checkNonNegative; 135 this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount)); in expectedNodeCount()
|
D | DirectedGraphConnections.java | 24 import static com.google.common.graph.Graphs.checkNonNegative; 148 this.predecessorCount = checkNonNegative(predecessorCount); in DirectedGraphConnections() 149 this.successorCount = checkNonNegative(successorCount); in DirectedGraphConnections() 459 checkNonNegative(--predecessorCount); 485 checkNonNegative(--successorCount);
|
/external/guava/guava/src/com/google/common/graph/ |
D | NetworkBuilder.java | 20 import static com.google.common.graph.Graphs.checkNonNegative; 147 this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount)); in expectedNodeCount() 157 this.expectedEdgeCount = Optional.of(checkNonNegative(expectedEdgeCount)); in expectedEdgeCount()
|
D | AbstractDirectedNetworkConnections.java | 21 import static com.google.common.graph.Graphs.checkNonNegative; 55 this.selfLoopCount = checkNonNegative(selfLoopCount); in AbstractDirectedNetworkConnections() 108 checkNonNegative(--selfLoopCount);
|
D | StandardMutableValueGraph.java | 23 import static com.google.common.graph.Graphs.checkNonNegative; 145 checkNonNegative(edgeCount); in removeNode() 164 checkNonNegative(--edgeCount); in removeEdge()
|
D | GraphBuilder.java | 21 import static com.google.common.graph.Graphs.checkNonNegative; 131 this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount)); in expectedNodeCount()
|
D | ValueGraphBuilder.java | 21 import static com.google.common.graph.Graphs.checkNonNegative; 135 this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount)); in expectedNodeCount()
|
D | DirectedGraphConnections.java | 24 import static com.google.common.graph.Graphs.checkNonNegative; 148 this.predecessorCount = checkNonNegative(predecessorCount); in DirectedGraphConnections() 149 this.successorCount = checkNonNegative(successorCount); in DirectedGraphConnections() 459 checkNonNegative(--predecessorCount); 485 checkNonNegative(--successorCount);
|