/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; 70 (UnaryOperator<Stream>) s -> s.limit(SKIP_LIMIT_SIZE)}); in sliceFunctionsDataProvider() 72 (UnaryOperator<Stream>) s -> s.skip(SKIP_LIMIT_SIZE).limit(SKIP_LIMIT_SIZE)}); in sliceFunctionsDataProvider() 84 (UnaryOperator<IntStream>) s -> s.limit(SKIP_LIMIT_SIZE)}); in intSliceFunctionsDataProvider() 86 (UnaryOperator<IntStream>) s -> s.skip(SKIP_LIMIT_SIZE).limit(SKIP_LIMIT_SIZE)}); in intSliceFunctionsDataProvider() 98 (UnaryOperator<LongStream>) s -> s.limit(SKIP_LIMIT_SIZE)}); in longSliceFunctionsDataProvider() 100 (UnaryOperator<LongStream>) s -> s.skip(SKIP_LIMIT_SIZE).limit(SKIP_LIMIT_SIZE)}); in longSliceFunctionsDataProvider() 112 (UnaryOperator<DoubleStream>) s -> s.limit(SKIP_LIMIT_SIZE)}); in doubleSliceFunctionsDataProvider() 114 (UnaryOperator<DoubleStream>) s -> s.skip(SKIP_LIMIT_SIZE).limit(SKIP_LIMIT_SIZE)}); in doubleSliceFunctionsDataProvider() 183 public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) { [all …]
|
D | StreamSpliteratorTest.java | 43 import java.util.function.UnaryOperator; 258 List<UnaryOperator<Stream<Integer>>> intermediateOps = Arrays.asList( in testSplitting() 269 UnaryOperator<Stream<Integer>> intermediateOp = intermediateOps.get(j); in testSplitting() 352 List<UnaryOperator<IntStream>> intermediateOps = Arrays.asList( in testIntSplitting() 363 UnaryOperator<IntStream> intermediateOp = intermediateOps.get(j); in testIntSplitting() 445 List<UnaryOperator<LongStream>> intermediateOps = Arrays.asList( in testLongSplitting() 456 UnaryOperator<LongStream> intermediateOp = intermediateOps.get(j); in testLongSplitting() 538 List<UnaryOperator<DoubleStream>> intermediateOps = Arrays.asList( in testDoubleSplitting() 548 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/test/java/util/Collections/ |
D | CheckedListReplaceAll.java | 34 import java.util.function.UnaryOperator; 41 UnaryOperator evil = e -> (((int) e) % 2 != 0) ? e : "evil"; in main() 55 wrapped.replaceAll((UnaryOperator)null); in main()
|
/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/test/java/util/stream/testlib/org/openjdk/testlib/java/util/ |
D | SpliteratorTestHelper.java | 84 public static UnaryOperator<Consumer<Integer>> intBoxingConsumer() { in intBoxingConsumer() 106 public static UnaryOperator<Consumer<Long>> longBoxingConsumer() { in longBoxingConsumer() 128 public static UnaryOperator<Consumer<Double>> doubleBoxingConsumer() { in doubleBoxingConsumer() 151 … UnaryOperator<Consumer<T>> boxingAdapter, in testSpliterator() 174 UnaryOperator<Consumer<T>> boxingAdapter) { in testForEach() 181 UnaryOperator<Consumer<T>> boxingAdapter) { in testTryAdvance() 188 UnaryOperator<Consumer<T>> boxingAdapter) { in testMixedTryAdvanceForEach() 195 UnaryOperator<Consumer<T>> boxingAdapter) { in testMixedTraverseAndSplit() 202 UnaryOperator<Consumer<T>> boxingAdapter) { in testSplitOnce() 209 UnaryOperator<Consumer<T>> boxingAdapter) { in testSplitSixDeep() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicReference.java | 41 import java.util.function.UnaryOperator; 184 public final V getAndUpdate(UnaryOperator<V> updateFunction) { in getAndUpdate() 206 public final V updateAndGet(UnaryOperator<V> updateFunction) { in updateAndGet()
|
D | AtomicReferenceFieldUpdater.java | 44 import java.util.function.UnaryOperator; 214 public final V getAndUpdate(T obj, UnaryOperator<V> updateFunction) { in getAndUpdate() 236 public final V updateAndGet(T obj, UnaryOperator<V> updateFunction) { in updateAndGet()
|
D | AtomicReferenceArray.java | 44 import java.util.function.UnaryOperator; 206 public final E getAndUpdate(int i, UnaryOperator<E> updateFunction) { in getAndUpdate() 230 public final E updateAndGet(int i, UnaryOperator<E> updateFunction) { in updateAndGet()
|
/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/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/main/java/java/util/stream/ |
D | package-info.java | 756 import java.util.function.UnaryOperator;
|
D | Stream.java | 45 import java.util.function.UnaryOperator; 1452 public static<T> Stream<T> iterate(final T seed, final UnaryOperator<T> f) { 1514 … public static<T> Stream<T> iterate(T seed, Predicate<? super T> hasNext, UnaryOperator<T> next) {
|
/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; 436 default void replaceAll(UnaryOperator<E> operator) { in replaceAll()
|
D | ReverseOrderListView.java | 32 import java.util.function.UnaryOperator; 376 public void replaceAll(UnaryOperator<E> operator) { in replaceAll()
|
D | ArrayList.java | 31 import java.util.function.UnaryOperator; 1294 public void replaceAll(UnaryOperator<E> operator) { in replaceAll() 1801 public void replaceAll(UnaryOperator<E> operator) { 1807 private void replaceAllRange(UnaryOperator<E> operator, int i, int end) {
|
/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/flagged_api/java/util/ |
D | ArrayList.annotated.java | 119 public void replaceAll(java.util.function.UnaryOperator<E> operator) { throw new RuntimeException("… in replaceAll()
|
D | List.annotated.java | 58 public default void replaceAll(java.util.function.UnaryOperator<E> operator) { throw new RuntimeExc… in replaceAll()
|
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/ |
D | CopyOnWriteArrayList.annotated.java | 117 public void replaceAll(java.util.function.UnaryOperator<E> operator) { throw new RuntimeException("… in replaceAll()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | ArrayList.annotated.java | 111 public void replaceAll(@libcore.util.NonNull java.util.function.UnaryOperator<@libcore.util.NullFro… in replaceAll()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 56 import java.util.function.UnaryOperator; 959 public void replaceAll(UnaryOperator<E> operator) { in replaceAll() 965 void replaceAllRange(UnaryOperator<E> operator, int i, int end) { in replaceAllRange() 1612 public void replaceAll(UnaryOperator<E> operator) { in replaceAll() 2060 public void replaceAll(UnaryOperator<E> operator) { in replaceAll()
|