Home
last modified time | relevance | path

Searched refs:applyAsDouble (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/main/java/java/util/function/
DDoubleUnaryOperator.java49 double applyAsDouble(double operand); in applyAsDouble() method
66 return (double v) -> applyAsDouble(before.applyAsDouble(v)); in compose()
84 return (double t) -> after.applyAsDouble(applyAsDouble(t)); in andThen()
DIntToDoubleFunction.java47 double applyAsDouble(int value); in applyAsDouble() method
DLongToDoubleFunction.java47 double applyAsDouble(long value); in applyAsDouble() method
DDoubleBinaryOperator.java48 double applyAsDouble(double left, double right); in applyAsDouble() method
DToDoubleFunction.java48 double applyAsDouble(T value); in applyAsDouble() method
DToDoubleBiFunction.java51 double applyAsDouble(T t, U u); in applyAsDouble() method
/libcore/luni/src/test/java/libcore/java/util/function/
DDoubleUnaryOperatorTest.java28 assertEquals(1.0d, DoubleUnaryOperator.identity().applyAsDouble(1.0d)); in testIdentity()
29 assertEquals(Double.NaN, DoubleUnaryOperator.identity().applyAsDouble(Double.NaN)); in testIdentity()
31 DoubleUnaryOperator.identity().applyAsDouble(Double.NEGATIVE_INFINITY)); in testIdentity()
33 DoubleUnaryOperator.identity().applyAsDouble(Double.MAX_VALUE)); in testIdentity()
39 assertEquals(11.0d, plusOne.compose(twice).applyAsDouble(5.0d)); in testCompose()
53 assertEquals(12.0d, plusOne.andThen(twice).applyAsDouble(5.0d)); in testAndThen()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DDoubleAccumulator.java106 (function.applyAsDouble in accumulate()
113 (function.applyAsDouble in accumulate()
135 result = function.applyAsDouble in get()
178 result = function.applyAsDouble(result, v); in getThenReset()
DStriped64.java296 d = (fn == null) ? d + x : fn.applyAsDouble(d, x); in apply()
/libcore/ojluni/src/main/java/java/util/
DComparator.java532 … (c1, c2) -> Double.compare(keyExtractor.applyAsDouble(c1), keyExtractor.applyAsDouble(c2)); in comparingDouble()
DArrayPrefixHelpers.java462 fn.applyAsDouble(pin, lout)); in compute()
511 a[i] = sum = fn.applyAsDouble(sum, a[i]); in compute()
516 sum = fn.applyAsDouble(sum, a[i]); in compute()
536 fn.applyAsDouble(lout, rt.out)); in compute()
DArrays.java4744 array[i] = generator.applyAsDouble(i); in setAll()
4763 …tStream.range(0, array.length).parallel().forEach(i -> { array[i] = generator.applyAsDouble(i); }); in parallelSetAll()
/libcore/ojluni/src/main/java/java/util/stream/
DCollectors.java518 (a, t) -> { sumWithCompensation(a, mapper.applyAsDouble(t));
519 a[2] += mapper.applyAsDouble(t);},
630 …(a, t) -> { sumWithCompensation(a, mapper.applyAsDouble(t)); a[2]++; a[3]+= mapper.applyAsDouble(t…
1533 (r, t) -> r.accept(mapper.applyAsDouble(t)),
DDoubleStream.java788 t = f.applyAsDouble(t); in iterate()
DReduceOps.java530 state = operator.applyAsDouble(state, t);
578 state = operator.applyAsDouble(state, t);
DIntPipeline.java297 downstream.accept(mapper.applyAsDouble(t));
DDoublePipeline.java206 downstream.accept(mapper.applyAsDouble(t)); in map()
DLongPipeline.java278 downstream.accept(mapper.applyAsDouble(t));
DReferencePipeline.java257 downstream.accept(mapper.applyAsDouble(u));
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java5779 r = reducer.applyAsDouble(r, transformer.applyAsDouble(p.key)); in compute()
5788 t.result = reducer.applyAsDouble(t.result, s.result); in compute()
5829 r = reducer.applyAsDouble(r, transformer.applyAsDouble(p.val)); in compute()
5838 t.result = reducer.applyAsDouble(t.result, s.result); in compute()
5879 r = reducer.applyAsDouble(r, transformer.applyAsDouble(p)); in compute()
5888 t.result = reducer.applyAsDouble(t.result, s.result); in compute()
5929 r = reducer.applyAsDouble(r, transformer.applyAsDouble(p.key, p.val)); in compute()
5938 t.result = reducer.applyAsDouble(t.result, s.result); in compute()