Home
last modified time | relevance | path

Searched refs:applyAsInt (Results 1 – 22 of 22) sorted by relevance

/libcore/ojluni/src/main/java/java/util/function/
DIntUnaryOperator.java49 int applyAsInt(int operand); in applyAsInt() method
66 return (int v) -> applyAsInt(before.applyAsInt(v)); in compose()
84 return (int t) -> after.applyAsInt(applyAsInt(t)); in andThen()
DDoubleToIntFunction.java47 int applyAsInt(double value); in applyAsInt() method
DLongToIntFunction.java47 int applyAsInt(long value); in applyAsInt() method
DIntBinaryOperator.java49 int applyAsInt(int left, int right); in applyAsInt() method
DToIntFunction.java48 int applyAsInt(T value); in applyAsInt() method
DToIntBiFunction.java51 int applyAsInt(T t, U u); in applyAsInt() method
/libcore/luni/src/test/java/libcore/java/util/function/
DIntUnaryOperatorTest.java26 assertEquals(1, IntUnaryOperator.identity().applyAsInt(1)); in testIdentity()
27 assertEquals(Integer.MAX_VALUE, IntUnaryOperator.identity().applyAsInt(Integer.MAX_VALUE)); in testIdentity()
33 assertEquals(11, plusOne.compose(twice).applyAsInt(5)); in testCompose()
47 assertEquals(12, plusOne.andThen(twice).applyAsInt(5)); in testAndThen()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicInteger.java223 next = updateFunction.applyAsInt(prev); in getAndUpdate()
242 next = updateFunction.applyAsInt(prev); in updateAndGet()
266 next = accumulatorFunction.applyAsInt(prev, x); in getAndAccumulate()
290 next = accumulatorFunction.applyAsInt(prev, x); in accumulateAndGet()
DAtomicIntegerArray.java267 next = updateFunction.applyAsInt(prev); in getAndUpdate()
288 next = updateFunction.applyAsInt(prev); in updateAndGet()
314 next = accumulatorFunction.applyAsInt(prev, x); in getAndAccumulate()
340 next = accumulatorFunction.applyAsInt(prev, x); in accumulateAndGet()
DAtomicIntegerFieldUpdater.java290 next = updateFunction.applyAsInt(prev); in getAndUpdate()
310 next = updateFunction.applyAsInt(prev); in updateAndGet()
335 next = accumulatorFunction.applyAsInt(prev, x); in getAndAccumulate()
360 next = accumulatorFunction.applyAsInt(prev, x); in accumulateAndGet()
/libcore/ojluni/src/main/java/java/util/
DComparator.java490 (c1, c2) -> Integer.compare(keyExtractor.applyAsInt(c1), keyExtractor.applyAsInt(c2)); in comparingInt()
DArrayPrefixHelpers.java612 fn.applyAsInt(pin, lout)); in compute()
661 a[i] = sum = fn.applyAsInt(sum, a[i]); in compute()
666 sum = fn.applyAsInt(sum, a[i]); in compute()
686 fn.applyAsInt(lout, rt.out)); in compute()
DArrays.java4668 array[i] = generator.applyAsInt(i); in setAll()
4687 … IntStream.range(0, array.length).parallel().forEach(i -> { array[i] = generator.applyAsInt(i); }); in parallelSetAll()
/libcore/ojluni/src/main/java/java/util/stream/
DIntStream.java754 t = f.applyAsInt(t); in iterate()
DReduceOps.java258 state = operator.applyAsInt(state, t);
306 state = operator.applyAsInt(state, t);
DCollectors.java467 (a, t) -> { a[0] += mapper.applyAsInt(t); },
575 (a, t) -> { a[0] += mapper.applyAsInt(t); a[1]++; },
1493 (r, t) -> r.accept(mapper.applyAsInt(t)),
DDoublePipeline.java242 downstream.accept(mapper.applyAsInt(t));
DLongPipeline.java260 downstream.accept(mapper.applyAsInt(t));
DIntPipeline.java243 downstream.accept(mapper.applyAsInt(t));
DReferencePipeline.java221 downstream.accept(mapper.applyAsInt(u));
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DTestData.java248 return sizeFn.applyAsInt(state); in size()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DTestData.java247 return sizeFn.applyAsInt(state); in size()