Home
last modified time | relevance | path

Searched refs:UnaryOperator (Results 1 – 25 of 32) sorted by relevance

12

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSequentialOpTest.java37 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 …]
DInfiniteStreamWithLimitOpTest.java44 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 …]
DStreamSpliteratorTest.java43 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/
DUnaryOperatorTest.java21 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/
DUnaryOperator.java41 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/
DAtomicReference.java39 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()
DAtomicReferenceArray.java41 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()
DAtomicReferenceFieldUpdater.java44 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/
DSpliteratorTestHelper.java150UnaryOperator<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/
DSpliteratorTestHelper.java150UnaryOperator<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/
Dpackage-info.java740 import java.util.function.UnaryOperator;
DStream.java50 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/
DTemporalAdjusters.java74 import java.util.function.UnaryOperator;
139 public static TemporalAdjuster ofDateAdjuster(UnaryOperator<LocalDate> dateBasedAdjuster) { in ofDateAdjuster()
/libcore/ojluni/src/main/java/java/util/
DList.java28 import java.util.function.UnaryOperator;
433 default void replaceAll(UnaryOperator<E> operator) { in replaceAll()
DVector.java30 import java.util.function.UnaryOperator;
1320 public synchronized void replaceAll(UnaryOperator<E> operator) { in replaceAll()
DArrayList.java31 import java.util.function.UnaryOperator;
1453 public void replaceAll(UnaryOperator<E> operator) { in replaceAll()
/libcore/luni/src/test/java/libcore/java/util/
DListOfTest.java28 import java.util.function.UnaryOperator;
211 assertThrowsUoe(() -> { list.replaceAll(UnaryOperator.identity()); } ); in assertUnmodifiable()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DCopyOnWriteArrayList.java199 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/
DArrayList.annotated.java99 public void replaceAll(@libcore.util.NonNull java.util.function.UnaryOperator<@libcore.util.NullFro… in replaceAll()
DVector.annotated.java135 public synchronized void replaceAll(@libcore.util.NonNull java.util.function.UnaryOperator<@libcore… in replaceAll()
DList.annotated.java60 public default void replaceAll(@libcore.util.NonNull java.util.function.UnaryOperator<@libcore.util… in replaceAll()
/libcore/ojluni/annotations/sdk/nullability/java/util/concurrent/
DCopyOnWriteArrayList.annotated.java106 public void replaceAll(@libcore.util.NonNull java.util.function.UnaryOperator<@libcore.util.NullFro… in replaceAll()
/libcore/ojluni/annotations/hiddenapi/java/util/
DVector.java262 public synchronized void replaceAll(java.util.function.UnaryOperator<E> operator) { in replaceAll()
DArrayList.java207 public void replaceAll(java.util.function.UnaryOperator<E> operator) { in replaceAll()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCopyOnWriteArrayList.java52 import java.util.function.UnaryOperator;
863 public void replaceAll(UnaryOperator<E> operator) { in replaceAll()
1319 public void replaceAll(UnaryOperator<E> operator) { in replaceAll()

12