/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SequentialOpTest.java | 37 import java.util.function.UnaryOperator; 57 UnaryOperator<Stream<Integer>>[] configs in testLazy() 58 = new UnaryOperator[] { in testLazy() 59 … (UnaryOperator<Stream<Integer>>) s -> s.peek(e -> { counter.incrementAndGet(); }), in testLazy() 60 …(UnaryOperator<Stream<Integer>>) s -> s.map(id).peek(e -> { counter.incrementAndGet(); }).sequenti… in testLazy() 61 …(UnaryOperator<Stream<Integer>>) s -> s.map(id).peek(e -> { counter.incrementAndGet(); }).parallel… in testLazy() 62 (UnaryOperator<Stream<Integer>>) s -> s.sequential().map(id).peek(e -> { in testLazy() 65 …(UnaryOperator<Stream<Integer>>) s -> s.parallel().map(id).peek(e -> { counter.incrementAndGet(); … in testLazy() 73 UnaryOperator<Stream<Integer>> config = configs[j]; in testLazy() 101 UnaryOperator<Stream<Integer>>[] changers in testMixedSeqPar() [all …]
|
D | InfiniteStreamWithLimitOpTest.java | 44 import java.util.function.UnaryOperator; 67 (UnaryOperator<Stream>) s -> s.limit(SKIP_LIMIT_SIZE)}); in sliceFunctionsDataProvider() 69 (UnaryOperator<Stream>) s -> s.skip(SKIP_LIMIT_SIZE).limit(SKIP_LIMIT_SIZE)}); in sliceFunctionsDataProvider() 81 (UnaryOperator<IntStream>) s -> s.limit(SKIP_LIMIT_SIZE)}); in intSliceFunctionsDataProvider() 83 (UnaryOperator<IntStream>) s -> s.skip(SKIP_LIMIT_SIZE).limit(SKIP_LIMIT_SIZE)}); in intSliceFunctionsDataProvider() 95 (UnaryOperator<LongStream>) s -> s.limit(SKIP_LIMIT_SIZE)}); in longSliceFunctionsDataProvider() 97 (UnaryOperator<LongStream>) s -> s.skip(SKIP_LIMIT_SIZE).limit(SKIP_LIMIT_SIZE)}); in longSliceFunctionsDataProvider() 109 (UnaryOperator<DoubleStream>) s -> s.limit(SKIP_LIMIT_SIZE)}); in doubleSliceFunctionsDataProvider() 111 (UnaryOperator<DoubleStream>) s -> s.skip(SKIP_LIMIT_SIZE).limit(SKIP_LIMIT_SIZE)}); in doubleSliceFunctionsDataProvider() 180 public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) { [all …]
|
D | StreamSpliteratorTest.java | 43 import java.util.function.UnaryOperator; 254 List<UnaryOperator<Stream<Integer>>> intermediateOps = Arrays.asList( in testSplitting() 265 UnaryOperator<Stream<Integer>> intermediateOp = intermediateOps.get(j); in testSplitting() 348 List<UnaryOperator<IntStream>> intermediateOps = Arrays.asList( in testIntSplitting() 359 UnaryOperator<IntStream> intermediateOp = intermediateOps.get(j); in testIntSplitting() 441 List<UnaryOperator<LongStream>> intermediateOps = Arrays.asList( in testLongSplitting() 452 UnaryOperator<LongStream> intermediateOp = intermediateOps.get(j); in testLongSplitting() 534 List<UnaryOperator<DoubleStream>> intermediateOps = Arrays.asList( in testDoubleSplitting() 544 UnaryOperator<DoubleStream> intermediateOp = intermediateOps.get(j); in testDoubleSplitting()
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | UnaryOperatorTest.java | 21 import java.util.function.UnaryOperator; 27 assertSame(arg, UnaryOperator.identity().apply(arg)); in testIdentity() 28 assertNull(null, UnaryOperator.identity().apply(null)); in testIdentity()
|
/libcore/ojluni/src/main/java/java/util/function/ |
D | UnaryOperator.java | 41 public interface UnaryOperator<T> extends Function<T, T> { interface 49 static <T> UnaryOperator<T> identity() { in identity()
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicReference.java | 39 import java.util.function.UnaryOperator; 158 public final V getAndUpdate(UnaryOperator<V> updateFunction) { in getAndUpdate() 177 public final V updateAndGet(UnaryOperator<V> updateFunction) { in updateAndGet()
|
D | AtomicReferenceArray.java | 41 import java.util.function.UnaryOperator; 212 public final E getAndUpdate(int i, UnaryOperator<E> updateFunction) { in getAndUpdate() 233 public final E updateAndGet(int i, UnaryOperator<E> updateFunction) { in updateAndGet()
|
D | AtomicReferenceFieldUpdater.java | 44 import java.util.function.UnaryOperator; 206 public final V getAndUpdate(T obj, UnaryOperator<V> updateFunction) { in getAndUpdate() 226 public final V updateAndGet(T obj, UnaryOperator<V> updateFunction) { in updateAndGet()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 150 … UnaryOperator<Consumer<T>> boxingAdapter, in testSpliterator() 200 UnaryOperator<Consumer<T>> boxingAdapter, in testForEach() 230 UnaryOperator<Consumer<T>> boxingAdapter, in testTryAdvance() 260 UnaryOperator<Consumer<T>> boxingAdapter, in testMixedTryAdvanceForEach() 291 UnaryOperator<Consumer<T>> boxingAdapter, in testMixedTraverseAndSplit() 334 UnaryOperator<Consumer<T>> boxingAdapter) { in testSplitAfterFullTraversal() 358 UnaryOperator<Consumer<T>> boxingAdapter, in testSplitOnce() 386 UnaryOperator<Consumer<T>> boxingAdapter, in testSplitSixDeep() 410 Spliterator spliterator, UnaryOperator boxingAdapter, in splitSixDeepVisitorUnsafe() 420 … List<T> dest, Spliterator<T> spliterator, UnaryOperator<Consumer<T>> boxingAdapter, in splitSixDeepVisitor() [all …]
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 150 … UnaryOperator<Consumer<T>> boxingAdapter, in testSpliterator() 200 UnaryOperator<Consumer<T>> boxingAdapter, in testForEach() 230 UnaryOperator<Consumer<T>> boxingAdapter, in testTryAdvance() 260 UnaryOperator<Consumer<T>> boxingAdapter, in testMixedTryAdvanceForEach() 291 UnaryOperator<Consumer<T>> boxingAdapter, in testMixedTraverseAndSplit() 334 UnaryOperator<Consumer<T>> boxingAdapter) { in testSplitAfterFullTraversal() 358 UnaryOperator<Consumer<T>> boxingAdapter, in testSplitOnce() 386 UnaryOperator<Consumer<T>> boxingAdapter, in testSplitSixDeep() 410 Spliterator spliterator, UnaryOperator boxingAdapter, in splitSixDeepVisitorUnsafe() 420 … List<T> dest, Spliterator<T> spliterator, UnaryOperator<Consumer<T>> boxingAdapter, in splitSixDeepVisitor() [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | package-info.java | 740 import java.util.function.UnaryOperator;
|
D | Stream.java | 50 import java.util.function.UnaryOperator; 1020 public static<T> Stream<T> iterate(final T seed, final UnaryOperator<T> f) { in iterate()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAdjusters.java | 74 import java.util.function.UnaryOperator; 139 public static TemporalAdjuster ofDateAdjuster(UnaryOperator<LocalDate> dateBasedAdjuster) { in ofDateAdjuster()
|
/libcore/ojluni/src/main/java/java/util/ |
D | List.java | 28 import java.util.function.UnaryOperator; 433 default void replaceAll(UnaryOperator<E> operator) { in replaceAll()
|
D | Vector.java | 30 import java.util.function.UnaryOperator; 1320 public synchronized void replaceAll(UnaryOperator<E> operator) { in replaceAll()
|
D | ArrayList.java | 31 import java.util.function.UnaryOperator; 1453 public void replaceAll(UnaryOperator<E> operator) { in replaceAll()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ListOfTest.java | 28 import java.util.function.UnaryOperator; 211 assertThrowsUoe(() -> { list.replaceAll(UnaryOperator.identity()); } ); in assertUnmodifiable()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 199 public void replaceAll(java.util.function.UnaryOperator<E> operator) { in replaceAll() 391 public void replaceAll(java.util.function.UnaryOperator<E> operator) { in replaceAll()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | ArrayList.annotated.java | 99 public void replaceAll(@libcore.util.NonNull java.util.function.UnaryOperator<@libcore.util.NullFro… in replaceAll()
|
D | Vector.annotated.java | 135 public synchronized void replaceAll(@libcore.util.NonNull java.util.function.UnaryOperator<@libcore… in replaceAll()
|
D | List.annotated.java | 60 public default void replaceAll(@libcore.util.NonNull java.util.function.UnaryOperator<@libcore.util… in replaceAll()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/concurrent/ |
D | CopyOnWriteArrayList.annotated.java | 106 public void replaceAll(@libcore.util.NonNull java.util.function.UnaryOperator<@libcore.util.NullFro… in replaceAll()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Vector.java | 262 public synchronized void replaceAll(java.util.function.UnaryOperator<E> operator) { in replaceAll()
|
D | ArrayList.java | 207 public void replaceAll(java.util.function.UnaryOperator<E> operator) { in replaceAll()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 52 import java.util.function.UnaryOperator; 863 public void replaceAll(UnaryOperator<E> operator) { in replaceAll() 1319 public void replaceAll(UnaryOperator<E> operator) { in replaceAll()
|