/libcore/ojluni/src/main/java/java/util/function/ |
D | LongUnaryOperator.java | 49 long applyAsLong(long operand); in applyAsLong() method 66 return (long v) -> applyAsLong(before.applyAsLong(v)); in compose() 84 return (long t) -> after.applyAsLong(applyAsLong(t)); in andThen()
|
D | IntToLongFunction.java | 47 long applyAsLong(int value); in applyAsLong() method
|
D | DoubleToLongFunction.java | 47 long applyAsLong(double value); in applyAsLong() method
|
D | LongBinaryOperator.java | 49 long applyAsLong(long left, long right); in applyAsLong() method
|
D | ToLongFunction.java | 48 long applyAsLong(T value); in applyAsLong() method
|
D | ToLongBiFunction.java | 51 long applyAsLong(T t, U u); in applyAsLong() method
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | LongUnaryOperatorTest.java | 26 assertEquals(1L, LongUnaryOperator.identity().applyAsLong(1L)); in testIdentity() 27 assertEquals(Long.MAX_VALUE, LongUnaryOperator.identity().applyAsLong(Long.MAX_VALUE)); in testIdentity() 33 assertEquals(11L, plusOne.compose(twice).applyAsLong(5L)); in testCompose() 47 assertEquals(12, plusOne.andThen(twice).applyAsLong(5L)); in testAndThen()
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicLong.java | 239 next = updateFunction.applyAsLong(prev); in getAndUpdate() 258 next = updateFunction.applyAsLong(prev); in updateAndGet() 282 next = accumulatorFunction.applyAsLong(prev, x); in getAndAccumulate() 306 next = accumulatorFunction.applyAsLong(prev, x); in accumulateAndGet()
|
D | LongAccumulator.java | 107 (r = function.applyAsLong(b = base, x)) != b && !casBase(b, r)) { in accumulate() 112 (r = function.applyAsLong(v = a.value, x)) == v || in accumulate() 133 result = function.applyAsLong(result, a.value); in get() 175 result = function.applyAsLong(result, v); in getThenReset()
|
D | AtomicLongArray.java | 266 next = updateFunction.applyAsLong(prev); in getAndUpdate() 287 next = updateFunction.applyAsLong(prev); in updateAndGet() 313 next = accumulatorFunction.applyAsLong(prev, x); in getAndAccumulate() 339 next = accumulatorFunction.applyAsLong(prev, x); in accumulateAndGet()
|
D | AtomicLongFieldUpdater.java | 293 next = updateFunction.applyAsLong(prev); in getAndUpdate() 313 next = updateFunction.applyAsLong(prev); in updateAndGet() 338 next = accumulatorFunction.applyAsLong(prev, x); in getAndAccumulate() 363 next = accumulatorFunction.applyAsLong(prev, x); in accumulateAndGet()
|
D | Striped64.java | 257 (fn == null) ? v + x : fn.applyAsLong(v, x))) in longAccumulate() 289 (fn == null) ? v + x : fn.applyAsLong(v, x))) in longAccumulate()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Comparator.java | 511 (c1, c2) -> Long.compare(keyExtractor.applyAsLong(c1), keyExtractor.applyAsLong(c2)); in comparingLong()
|
D | ArrayPrefixHelpers.java | 312 fn.applyAsLong(pin, lout)); in compute() 361 a[i] = sum = fn.applyAsLong(sum, a[i]); in compute() 366 sum = fn.applyAsLong(sum, a[i]); in compute() 386 fn.applyAsLong(lout, rt.out)); in compute()
|
D | Arrays.java | 4706 array[i] = generator.applyAsLong(i); in setAll() 4725 …IntStream.range(0, array.length).parallel().forEach(i -> { array[i] = generator.applyAsLong(i); }); in parallelSetAll()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | LongStream.java | 747 t = f.applyAsLong(t); in iterate()
|
D | ReduceOps.java | 394 state = operator.applyAsLong(state, t); 442 state = operator.applyAsLong(state, t);
|
D | Collectors.java | 485 (a, t) -> { a[0] += mapper.applyAsLong(t); }, 593 (a, t) -> { a[0] += mapper.applyAsLong(t); a[1]++; }, 1513 (r, t) -> r.accept(mapper.applyAsLong(t)),
|
D | IntPipeline.java | 279 downstream.accept(mapper.applyAsLong(t));
|
D | DoublePipeline.java | 260 downstream.accept(mapper.applyAsLong(t));
|
D | LongPipeline.java | 224 downstream.accept(mapper.applyAsLong(t));
|
D | ReferencePipeline.java | 239 downstream.accept(mapper.applyAsLong(u));
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentHashMap.java | 5979 r = reducer.applyAsLong(r, transformer.applyAsLong(p.key)); in compute() 5988 t.result = reducer.applyAsLong(t.result, s.result); in compute() 6029 r = reducer.applyAsLong(r, transformer.applyAsLong(p.val)); in compute() 6038 t.result = reducer.applyAsLong(t.result, s.result); in compute() 6079 r = reducer.applyAsLong(r, transformer.applyAsLong(p)); in compute() 6088 t.result = reducer.applyAsLong(t.result, s.result); in compute() 6129 r = reducer.applyAsLong(r, transformer.applyAsLong(p.key, p.val)); in compute() 6138 t.result = reducer.applyAsLong(t.result, s.result); in compute()
|