Home
last modified time | relevance | path

Searched refs:getSum (Results 1 – 9 of 9) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DLongSummaryStatisticsTest.java29 assertEquals(0, lss.getSum()); in test_empty()
41 assertEquals(100L, lss.getSum()); in test_accept()
44 assertEquals(350L, lss.getSum()); in test_accept()
49 assertEquals(400L, lss.getSum()); in test_accept()
52 assertEquals(600L, lss.getSum()); in test_accept()
61 assertEquals(118L, lssCombined.getSum()); in test_combine()
74 assertEquals(104L, lss1.getSum()); in test_getSum()
DDoubleSummaryStatisticsTest.java29 assertEquals(0.0d, dss.getSum()); in test_empty()
39 assertEquals(100.5d, dss.getSum()); in test_accept()
42 assertEquals(145.5d, dss.getSum()); in test_accept()
50 assertEquals(164.4d, dssCombined.getSum()); in test_combine()
63 assertEquals(148.4, dss1.getSum()); in test_getSum()
66 assertEquals(Double.NaN, dss1.getSum()); in test_getSum()
DIntSummaryStatisticsTest.java29 assertEquals(0, iss.getSum()); in test_empty()
39 assertEquals(5, iss.getSum()); in test_accept()
42 assertEquals(15, iss.getSum()); in test_accept()
51 assertEquals(118, issCombined.getSum()); in test_combine()
64 assertEquals(104, iss1.getSum()); in test_getSum()
/libcore/ojluni/src/main/java/java/util/
DIntSummaryStatistics.java119 public final long getSum() { in getSum() method in IntSummaryStatistics
150 return getCount() > 0 ? (double) getSum() / getCount() : 0.0d; in getAverage()
166 getSum(), in toString()
DLongSummaryStatistics.java131 public final long getSum() { in getSum() method in LongSummaryStatistics
162 return getCount() > 0 ? (double) getSum() / getCount() : 0.0d; in getAverage()
178 getSum(), in toString()
DDoubleSummaryStatistics.java151 public final double getSum() { in getSum() method in DoubleSummaryStatistics
212 return getCount() > 0 ? getSum() / getCount() : 0.0d; in getAverage()
228 getSum(), in toString()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSummaryStatisticsTest.java54 assertEquals(stats.getSum(), countTo(1000).stream().mapToInt(i -> i).sum()); in testIntStatistics()
69 assertEquals(stats.getSum(), (long) countTo(1000).stream().mapToInt(i -> i).sum()); in testLongStatistics()
84 assertEquals(stats.getSum(), (double) countTo(1000).stream().mapToInt(i -> i).sum()); in testDoubleStatistics()
/libcore/ojluni/src/test/java/util/stream/
DTestDoubleSumAverage.java83 failures += compareUlpDifference(expectedSum, stats.getSum(), 3); in testForCompenstation()
132 failures += compareUlpDifference(expected, stats.getSum(), 0); in testNonfiniteSum()
/libcore/api/
Dcurrent.txt12799 method public final double getSum();
13029 method public final long getSum();
13254 method public final long getSum();