Home
last modified time | relevance | path

Searched refs:applyAsLong (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/main/java/java/util/function/
DLongUnaryOperator.java49 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()
DIntToLongFunction.java47 long applyAsLong(int value); in applyAsLong() method
DDoubleToLongFunction.java47 long applyAsLong(double value); in applyAsLong() method
DLongBinaryOperator.java49 long applyAsLong(long left, long right); in applyAsLong() method
DToLongFunction.java48 long applyAsLong(T value); in applyAsLong() method
DToLongBiFunction.java51 long applyAsLong(T t, U u); in applyAsLong() method
/libcore/luni/src/test/java/libcore/java/util/function/
DLongUnaryOperatorTest.java26 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/
DAtomicLong.java239 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()
DLongAccumulator.java107 (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()
DAtomicLongArray.java266 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()
DAtomicLongFieldUpdater.java293 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()
DStriped64.java257 (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/
DComparator.java511 (c1, c2) -> Long.compare(keyExtractor.applyAsLong(c1), keyExtractor.applyAsLong(c2)); in comparingLong()
DArrayPrefixHelpers.java312 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()
DArrays.java4706 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/
DLongStream.java747 t = f.applyAsLong(t); in iterate()
DReduceOps.java394 state = operator.applyAsLong(state, t);
442 state = operator.applyAsLong(state, t);
DCollectors.java485 (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)),
DIntPipeline.java279 downstream.accept(mapper.applyAsLong(t));
DDoublePipeline.java260 downstream.accept(mapper.applyAsLong(t));
DLongPipeline.java224 downstream.accept(mapper.applyAsLong(t));
DReferencePipeline.java239 downstream.accept(mapper.applyAsLong(u));
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java5979 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()