Home
last modified time | relevance | path

Searched refs:getAsDouble (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DOptionalDouble.java112 public double getAsDouble() { in getAsDouble() method in OptionalDouble
162 return isPresent ? value : other.getAsDouble(); in orElseGet()
/libcore/ojluni/src/main/java/java/util/function/
DDoubleSupplier.java48 double getAsDouble(); in getAsDouble() method
/libcore/luni/src/test/java/libcore/java/util/
DOptionalDoubleTest.java37 assertEquals(56.0, OptionalDouble.of(56.0).getAsDouble()); in testGet()
40 OptionalDouble.empty().getAsDouble(); in testGet()
/libcore/ojluni/src/test/java/util/stream/
DTestDoubleSumAverage.java54 return compareUlpDifference(0.0, ds.get().average().getAsDouble(), 0); in testZeroAverageOfNonEmptyStream()
89 ds.get().average().getAsDouble(), 3); in testForCompenstation()
136 failures += compareUlpDifference(expected, ds.get().average().getAsDouble(), 0); in testNonfiniteSum()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DMinMaxTest.java96 assertEquals(1.0, LongStream.range(1, 1001).asDoubleStream().min().getAsDouble()); in testDoubleMinMax()
97 assertEquals(1000.0, LongStream.range(1, 1001).asDoubleStream().max().getAsDouble()); in testDoubleMinMax()
DFindFirstOpTest.java132 assertEquals(i.nextDouble(), r.getAsDouble()); in exerciseDoubleStream()
DFindAnyOpTest.java149 double r = or.getAsDouble(); in exerciseDoubleStream()
/libcore/ojluni/src/main/java/java/util/stream/
DStreamSpliterators.java1431 action.accept(s.getAsDouble()); in tryAdvance()