Home
last modified time | relevance | path

Searched refs:UnaryOperator (Results 1 – 25 of 27) 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 …]
/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/main/java/java/util/stream/
Dpackage-info.java740 import java.util.function.UnaryOperator;
/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/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()
DImmutableCollections.java37 import java.util.function.UnaryOperator;
107 @Override public void replaceAll(UnaryOperator<E> operator) { throw uoe(); } in replaceAll()
DCollections.java39 import java.util.function.UnaryOperator;
1373 public void replaceAll(UnaryOperator<E> operator) { in replaceAll()
2507 public void replaceAll(UnaryOperator<E> operator) {
3541 public void replaceAll(UnaryOperator<E> operator) {
4526 public void replaceAll(UnaryOperator<E> operator) {
4886 public void replaceAll(UnaryOperator<E> operator) {
/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/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()
DArrays.java796 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