Home
last modified time | relevance | path

Searched refs:applyAsLong (Results 1 – 20 of 20) 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()
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/luni/src/test/java/libcore/java/util/concurrent/
DConcurrentHashMapTest.java85 public long applyAsLong(Map.Entry<Long, Long> in) { in applyAsLong() method in ConcurrentHashMapTest.KeyAsLong
103 public long applyAsLong(Long key, Long value) { in applyAsLong() method in ConcurrentHashMapTest.IncrementKeyToLong
/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));
DLongPipeline.java224 downstream.accept(mapper.applyAsLong(t));