/openjdk9/jdk/src/java.base/share/classes/java/util/function/ |
H A D | Consumer.java | 31 * result. Unlike most other functional interfaces, {@code Consumer} is expected 42 public interface Consumer<T> { interface 52 * Returns a composed {@code Consumer} that performs, in sequence, this 59 * @return a composed {@code Consumer} that performs in sequence this 63 default Consumer<T> andThen(Consumer<? super T> after) {
|
/openjdk9/jdk/src/jdk.internal.ed/share/classes/jdk/internal/editor/spi/ |
H A D | BuildInEditorProvider.java | 28 import java.util.function.Consumer; 50 Consumer<String> saveHandler, Consumer<String> errorHandler);
|
/openjdk9/nashorn/test/script/basic/ |
H A D | JDK-8068901.js | 31 var Consumer = java.util.function.Consumer; variable 34 var fc = new (Java.extend(JFunction, Consumer))({ 39 var c = new Consumer(function(x) { print("c invoked as a consumer") }); 41 var cf = new (Java.extend(Consumer, JFunction))({
|
/openjdk9/langtools/test/tools/javac/lambda/T8024947/ |
H A D | PotentiallyAmbiguousWarningTest.java | 15 void foo(Consumer<Integer> c); 21 void foo(Consumer<Integer> c) { } 26 void foo(Consumer<Integer> c); 43 void foo(Consumer<Integer> c) { } 53 public void foo(Consumer<Integer> c) { } 71 void foo(Consumer<Integer> c);
|
/openjdk9/langtools/test/tools/javac/flow/T8042741/ |
H A D | LambdaArgumentsTest.java | 32 interface Consumer<E> { void take(E arg); } interface in class:LambdaArgumentsTest 35 void m1(Thrower<E> a1, Consumer<E> a2) {} 38 void m2(Thrower<E> a1, Consumer<RuntimeException> a2) {}
|
/openjdk9/langtools/test/tools/javac/varargs/ |
H A D | MethodHandleCrash.java | 34 java.util.function.Consumer<T> c = MethodHandleCrash::functional;
|
/openjdk9/jdk/src/java.base/share/classes/java/util/ |
H A D | Iterator.java | 28 import java.util.function.Consumer; 130 default void forEachRemaining(Consumer<? super E> action) {
|
/openjdk9/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/ |
H A D | AsyncConnection.java | 32 import java.util.function.Consumer; 61 void setAsyncCallbacks(Consumer<ByteBufferReference> asyncReceiver, 62 Consumer<Throwable> errorReceiver,
|
H A D | AbstractPushPublisher.java | 31 import java.util.function.Consumer; 45 public Consumer<Optional<T>> asDataConsumer() {
|
/openjdk9/jdk/src/jdk.editpad/share/classes/jdk/editpad/ |
H A D | EditPadProvider.java | 29 import java.util.function.Consumer; 59 Consumer<String> saveHandler, Consumer<String> errorHandler) {
|
/openjdk9/langtools/test/tools/javac/lambda/T8129740/ |
H A D | CaptureInCtorChainingTest.java | 31 import java.util.function.Consumer; 36 CaptureInCtorChainingTest(Function<Function<Function<Consumer<Void>, Void>, Void>, Void> innerClass) { 44 InnerClass(Function<Function<Function<Consumer<Void>, Void>, Void>, Void> factory) {
|
/openjdk9/jdk/src/java.base/share/classes/java/lang/ |
H A D | Iterable.java | 31 import java.util.function.Consumer; 72 default void forEach(Consumer<? super T> action) {
|
/openjdk9/langtools/test/tools/javac/lambda/8016177/ |
H A D | T8016177e.java | 36 interface Consumer<X> { interface in class:T8016177e 40 <T> TerminalOp<T, Void> makeRef(Consumer<? super T> action) { return null; }
|
/openjdk9/hotspot/test/runtime/SelectionResolution/classes/selectionresolution/ |
H A D | SelectionResolutionTest.java | 26 import java.util.function.Consumer; 58 public void runCases(Consumer<SelectionResolutionTestCase> runner); 78 public void runCases(final Consumer<SelectionResolutionTestCase> runner) { 79 Consumer<SelectionResolutionTestCase.Builder> curr = (builder) -> { 84 final Consumer<SelectionResolutionTestCase.Builder> next = curr;
|
/openjdk9/hotspot/test/gc/g1/humongousObjects/objectGraphTest/ |
H A D | GC.java | 32 import java.util.function.Consumer; 50 public Consumer<ReferenceInfo<Object[]>> getChecker() { 80 public Consumer<ReferenceInfo<Object[]>> getChecker() { 102 public Consumer<ReferenceInfo<Object[]>> getChecker() { 124 public Consumer<ReferenceInfo<Object[]>> getChecker() { 160 public Consumer<ReferenceInfo<Object[]>> getChecker() { 181 public Consumer<ReferenceInfo<Object[]>> getChecker() { 203 protected Consumer<ReferenceInfo<Object[]>> getCaseCheck(boolean expectedNull) { 209 protected Consumer<ReferenceInfo<Object[]>> getCheckerImpl(boolean weakH, boolean softH, 228 public abstract Consumer<ReferenceInf [all...] |
/openjdk9/jdk/test/jdk/lambda/ |
H A D | LambdaTranslationTest1.java | 24 import java.util.function.Consumer; 69 Consumer<Object> b = t -> {setResult("Sink0::" + t);}; 73 Consumer<String> b1 = t -> {setResult("Sink1::" + t);}; 78 Consumer<Integer> b2 = t -> {setResult("Sink2::" + t);}; 83 Consumer<Integer> b3 = t -> {setResult("Sink3::" + t);}; 90 Consumer<String> b4 = t -> {setResult(String.format("b4: %s .. %s", cntxt, t));}; 95 Consumer<String> b5 = t -> {setResult(String.format("b5: %s .. %s", flaw, t));}; 100 Consumer<String> b6 = t -> {setResult(String.format("b6: %s .. %s .. %s", t, cntxt, flaw));}; 104 Consumer<String> b7 = t -> {setResult(String.format("b7: %s %s", t, this.protectedSuperclassMethod()));}; 108 Consumer<Strin [all...] |
/openjdk9/jdk/test/java/util/stream/test/org/openjdk/tests/java/util/ |
H A D | NullArgsTestCase.java | 28 import java.util.function.Consumer; 33 * NullArgsTestCase -- Given a Consumer<Object[]>, and an Object[] array of args, call the block with the args, 42 public final Consumer<Object[]> sink; 45 protected NullArgsTestCase(String name, Consumer<Object[]> sink, Object[] args) {
|
/openjdk9/langtools/test/tools/javac/lambda/8074381/ |
H A D | T8074381b.java | 8 import java.util.function.Consumer; 32 public interface ThrowingConsumer<T> extends BiConsumer<T,Consumer<Throwable>> { 34 default void accept(final T elem, final Consumer<Throwable> errorHandler) {
|
/openjdk9/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/websocket/ |
H A D | Transmitter.java | 31 import java.util.function.Consumer; 48 private Consumer<Exception> completionHandler; 62 void send(OutgoingMessage message, Consumer<Exception> completionHandler) { 88 private void send0(OutgoingMessage message, Consumer<Exception> handler) {
|
H A D | CooperativeHandler.java | 29 import java.util.function.Consumer; 47 * If the task is asynchronous, it is represented with `Consumer<Runnable>`. 48 * The handler invokes `Consumer.accept(end)` to begin the task. The task 107 private final Consumer<Runnable> begin; 113 public CooperativeHandler(Consumer<Runnable> begin) { 201 private static Consumer<Runnable> asyncOf(Runnable task) {
|
/openjdk9/jdk/test/java/net/URL/HandlersPkgPrefix/ |
H A D | HandlersPkgPrefix.java | 26 import java.util.function.Consumer; 37 static final Consumer<Result> KNOWN = r -> { 44 static final Consumer<Result> UNKNOWN = r -> { 68 Consumer<Result> resultChecker) {
|
/openjdk9/jdk/test/java/security/KeyPairGenerator/ |
H A D | FinalizeHalf.java | 37 import java.util.function.Consumer; 46 List<Consumer<Key>> methods = new ArrayList<>(); 53 for (Consumer<Key> method : methods) { 66 Consumer<Key> method) throws Exception {
|
/openjdk9/langtools/test/jdk/jshell/ |
H A D | ToolProviderTest.java | 28 import java.util.function.Consumer; 63 protected void start(Consumer<String> checkCmdOutput, 64 Consumer<String> checkUserOutput, Consumer<String> checkError,
|
/openjdk9/jdk/test/java/util/Iterator/ |
H A D | PrimitiveIteratorDefaults.java | 25 import java.util.function.Consumer; 57 assertThrowsNPE(() -> i.forEachRemaining((Consumer<Integer>) null)); 74 assertThrowsNPE(() -> i.forEachRemaining((Consumer<Long>) null)); 91 assertThrowsNPE(() -> i.forEachRemaining((Consumer<Double>) null));
|
/openjdk9/langtools/test/tools/javac/T8176714/ |
H A D | TimingOfMReferenceCheckingTest02.java | 34 <Z> void g(Consumer<Z> fzr, Z z) {}
|