Home
last modified time | relevance | path

Searched refs:Consumer (Results 1 – 25 of 105) sorted by relevance

12345

/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DStreamTestScenario.java30 import java.util.function.Consumer;
47 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_FOR_EACH_WITH_CLOSE()
60 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_COLLECT()
70 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_TO_ARRAY()
80 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_ITERATOR()
89 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR()
97 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
105 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR_FOREACH()
113 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH()
121 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in PAR_STREAM_FOR_EACH_ORDERED()
[all …]
DSpliteratorTestHelper.java65 testSpliterator(supplier, (Consumer<Integer> b) -> b, asserter); in testSpliterator()
74 class BoxingAdapter implements Consumer<Integer>, IntConsumer { in testIntSpliterator()
75 private final Consumer<Integer> b; in testIntSpliterator()
77 BoxingAdapter(Consumer<Integer> b) { in testIntSpliterator()
101 class BoxingAdapter implements Consumer<Long>, LongConsumer { in testLongSpliterator()
102 private final Consumer<Long> b; in testLongSpliterator()
104 BoxingAdapter(Consumer<Long> b) { in testLongSpliterator()
128 class BoxingAdapter implements Consumer<Double>, DoubleConsumer { in testDoubleSpliterator()
129 private final Consumer<Double> b; in testDoubleSpliterator()
131 BoxingAdapter(Consumer<Double> b) { in testDoubleSpliterator()
[all …]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DStreamTestScenario.java30 import java.util.function.Consumer;
50 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_FOR_EACH_WITH_CLOSE()
63 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_COLLECT()
73 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_TO_ARRAY()
83 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_ITERATOR()
92 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR()
100 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT()
108 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR_FOREACH()
116 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH()
124 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in PAR_STREAM_FOR_EACH_ORDERED()
[all …]
DSpliteratorTestHelper.java65 testSpliterator(supplier, (Consumer<Integer> b) -> b, asserter); in testSpliterator()
74 class BoxingAdapter implements Consumer<Integer>, IntConsumer { in testIntSpliterator()
75 private final Consumer<Integer> b; in testIntSpliterator()
77 BoxingAdapter(Consumer<Integer> b) { in testIntSpliterator()
101 class BoxingAdapter implements Consumer<Long>, LongConsumer { in testLongSpliterator()
102 private final Consumer<Long> b; in testLongSpliterator()
104 BoxingAdapter(Consumer<Long> b) { in testLongSpliterator()
128 class BoxingAdapter implements Consumer<Double>, DoubleConsumer { in testDoubleSpliterator()
129 private final Consumer<Double> b; in testDoubleSpliterator()
131 BoxingAdapter(Consumer<Double> b) { in testDoubleSpliterator()
[all …]
/libcore/ojluni/src/main/java/java/util/
DSpliterator.java27 import java.util.function.Consumer;
309 boolean tryAdvance(Consumer<? super T> action); in tryAdvance()
325 default void forEachRemaining(Consumer<? super T> action) { in forEachRemaining()
668 default boolean tryAdvance(Consumer<? super Integer> action) { in tryAdvance()
691 default void forEachRemaining(Consumer<? super Integer> action) { in forEachRemaining()
732 default boolean tryAdvance(Consumer<? super Long> action) { in tryAdvance()
755 default void forEachRemaining(Consumer<? super Long> action) { in forEachRemaining()
796 default boolean tryAdvance(Consumer<? super Double> action) { in tryAdvance()
820 default void forEachRemaining(Consumer<? super Double> action) { in forEachRemaining()
DPrimitiveIterator.java27 import java.util.function.Consumer;
141 default void forEachRemaining(Consumer<? super Integer> action) { in forEachRemaining()
215 default void forEachRemaining(Consumer<? super Long> action) { in forEachRemaining()
289 default void forEachRemaining(Consumer<? super Double> action) { in forEachRemaining()
DIterator.java28 import java.util.function.Consumer;
113 default void forEachRemaining(Consumer<? super E> action) { in forEachRemaining()
/libcore/luni/src/test/java/libcore/java/util/function/
DConsumerTest.java21 import java.util.function.Consumer;
26 Consumer<StringBuilder> sweet = s -> s.append("sweet"); in testAndThen()
27 Consumer<StringBuilder> dude = s -> s.append("dude"); in testAndThen()
39 Consumer<StringBuilder> one = s -> s.append("one"); in testAndThen_null()
/libcore/ojluni/src/main/java/java/util/function/
DConsumer.java42 public interface Consumer<T> { interface
63 default Consumer<T> andThen(Consumer<? super T> after) { in andThen()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeParseContext.java73 import java.util.function.Consumer;
113 private ArrayList<Consumer<Chronology>> chronoListeners = null;
386 Consumer<Chronology>[] tmp = new Consumer[1]; in setParsed()
387 Consumer<Chronology>[] listeners = chronoListeners.toArray(tmp); in setParsed()
389 for (Consumer<Chronology> l : listeners) { in setParsed()
400 void addChronoChangedListener(Consumer<Chronology> listener) { in addChronoChangedListener()
402 chronoListeners = new ArrayList<Consumer<Chronology>>(); in addChronoChangedListener()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCompletionStage.java40 import java.util.function.Consumer;
219 public CompletionStage<Void> thenAccept(Consumer<? super T> action); in thenAccept()
234 public CompletionStage<Void> thenAcceptAsync(Consumer<? super T> action); in thenAcceptAsync()
249 public CompletionStage<Void> thenAcceptAsync(Consumer<? super T> action, in thenAcceptAsync()
532 Consumer<? super T> action); in acceptEither()
550 Consumer<? super T> action); in acceptEitherAsync()
569 Consumer<? super T> action, in acceptEitherAsync()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/
DNullArgsTestCase.java28 import java.util.function.Consumer;
42 public final Consumer<Object[]> sink;
45 protected NullArgsTestCase(String name, Consumer<Object[]> sink, Object[] args) { in NullArgsTestCase()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/
DSerializedLambdaTest.java41 import java.util.function.Consumer;
62 …private<T> void assertSerial(T p, Consumer<T> asserter) throws IOException, ClassNotFoundException… in assertSerial()
73 private void assertNotSerial(Predicate<String> p, Consumer<Predicate<String>> asserter) in assertNotSerial()
197 Consumer<Predicate<String>> b = p -> { in testStaticMR()
215 Consumer<BiPredicate<Moo, String>> b = p -> { in testUnboundMR()
235 Consumer<Predicate<String>> b = p -> { in testBoundMRNotSerReceiver()
258 Consumer<Predicate<String>> b = p -> { in testBoundMR()
276 Consumer<Supplier<ForCtorRef>> b = s -> { in testCtorRef()
288 Consumer<String> c = (Consumer<String> & Serializable) list::add; in testDiscardReturnBound()
289 assertSerial(c, cc -> { assertTrue(cc instanceof Consumer); }); in testDiscardReturnBound()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/util/
DIterator.annotated.java28 import java.util.function.Consumer;
35 …public default void forEachRemaining(@libcore.util.NonNull Consumer<? super @libcore.util.NullFrom… in forEachRemaining()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DIterable.annotated.java29 import java.util.function.Consumer;
36 …public default void forEach(@NonNull Consumer<? super T> action) { throw new RuntimeException("Stu… in forEach()
/libcore/ojluni/src/main/java/java/lang/
DIterable.java31 import java.util.function.Consumer;
72 default void forEach(Consumer<? super T> action) { in forEach()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamSpliteratorTest.java38 import java.util.function.Consumer;
88 public boolean tryAdvance(Consumer<? super T> consumer) { in tryAdvance()
95 public void forEachRemaining(Consumer<? super T> consumer) { in forEachRemaining()
136 public boolean tryAdvance(Consumer<? super Integer> consumer) { in tryAdvance()
141 public void forEachRemaining(Consumer<? super Integer> consumer) { in forEachRemaining()
177 public boolean tryAdvance(Consumer<? super Long> consumer) { in tryAdvance()
182 public void forEachRemaining(Consumer<? super Long> consumer) { in forEachRemaining()
219 public boolean tryAdvance(Consumer<? super Double> consumer) { in tryAdvance()
224 public void forEachRemaining(Consumer<? super Double> consumer) { in forEachRemaining()
248 List<Consumer<Stream<Integer>>> terminalOps = Arrays.asList( in testSplitting()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DStream.java42 import java.util.function.Consumer;
423 Stream<T> peek(Consumer<? super T> action); in peek()
498 void forEach(Consumer<? super T> action); in forEach()
517 void forEachOrdered(Consumer<? super T> action); in forEachOrdered()
1102 public interface Builder<T> extends Consumer<T> {
DNode.java28 import java.util.function.Consumer;
81 void forEach(Consumer<? super T> consumer); in forEach()
326 default void forEach(Consumer<? super Integer> consumer) { in forEach()
399 default void forEach(Consumer<? super Long> consumer) { in forEach()
472 default void forEach(Consumer<? super Double> consumer) { in forEach()
DStreamSpliterators.java33 import java.util.function.Consumer;
298 public boolean tryAdvance(Consumer<? super P_OUT> consumer) { in tryAdvance()
307 public void forEachRemaining(Consumer<? super P_OUT> consumer) { in forEachRemaining()
525 public boolean tryAdvance(Consumer<? super T> consumer) { in tryAdvance()
530 public void forEachRemaining(Consumer<? super T> consumer) { in forEachRemaining()
710 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance()
729 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining()
992 implements Spliterator<T>, Consumer<T> {
1009 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance()
1025 public void forEachRemaining(Consumer<? super T> action) { in forEachRemaining()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DPrimitiveIteratorTest.java25 import java.util.function.Consumer;
126 cit.forEachRemaining((Consumer<Integer>) null); in testIntIterator_forEachRemaining_boxedConsumer()
173 cit.forEachRemaining((Consumer<Long>) null); in testLongIterator_forEachRemaining_boxedConsumer()
220 cit.forEachRemaining((Consumer<Double>) null); in testDoubleIterator_forEachRemaining_boxedConsumer()
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrayDeque.java244 public void forEachRemaining(java.util.function.Consumer<? super E> action) { in forEachRemaining()
270 public void forEachRemaining(java.util.function.Consumer<? super E> consumer) { in forEachRemaining()
274 public boolean tryAdvance(java.util.function.Consumer<? super E> consumer) { in tryAdvance()
DVector.java254 public synchronized void forEach(java.util.function.Consumer<? super E> action) { in forEach()
303 public void forEachRemaining(java.util.function.Consumer<? super E> action) { in forEachRemaining()
372 public boolean tryAdvance(java.util.function.Consumer<? super E> action) { in tryAdvance()
376 public void forEachRemaining(java.util.function.Consumer<? super E> action) { in forEachRemaining()
DHashMap.java330 public void forEach(java.util.function.Consumer<? super java.util.Map.Entry<K, V>> action) { in forEach()
350 java.util.function.Consumer<? super java.util.Map.Entry<K, V>> action) { in forEachRemaining()
355 java.util.function.Consumer<? super java.util.Map.Entry<K, V>> action) { in tryAdvance()
465 public void forEach(java.util.function.Consumer<? super K> action) { in forEach()
484 public void forEachRemaining(java.util.function.Consumer<? super K> action) { in forEachRemaining()
488 public boolean tryAdvance(java.util.function.Consumer<? super K> action) { in tryAdvance()
661 public void forEachRemaining(java.util.function.Consumer<? super V> action) { in forEachRemaining()
665 public boolean tryAdvance(java.util.function.Consumer<? super V> action) { in tryAdvance()
701 public void forEach(java.util.function.Consumer<? super V> action) { in forEach()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java51 import java.util.function.Consumer;
1092 private static final Consumer<ProviderAndOperationParameter<Pair<String, String>>> PUT =
1098 private static final Consumer<ProviderAndOperationParameter<Map<String, String>>> PUT_ALL =
1101 private static final Consumer<ProviderAndOperationParameter<String>> REMOVE =
1104 private static final Consumer<ProviderAndOperationParameter<
1113 private static final Consumer<ProviderAndOperationParameter<Pair<String, String>>>
1119 private static final Consumer<ProviderAndOperationParameter<
1125 private static final Consumer<ProviderAndOperationParameter<
1134 private static final Consumer<ProviderAndOperationParameter<Pair<String, String>>>
1140 private static final Consumer<ProviderAndOperationParameter<Pair<Pair<String, String>, String>>>
[all …]

12345