Searched refs:Consumer (Results 76 - 100 of 240) sorted by relevance

12345678910

/openjdk9/jdk/test/java/awt/font/Fallback/
H A DSurrogatesFallbackTest.java34 import java.util.function.Consumer;
65 private static BufferedImage createImage(Consumer<Graphics2D> drawing) {
/openjdk9/langtools/test/jdk/jshell/
H A DShutdownTest.java31 import java.util.function.Consumer;
121 private static class ShutdownListener implements Consumer<JShell> {
H A DEditorTestBase.java26 import java.util.function.Consumer;
53 Consumer<String> checkInput, Consumer<String> checkOutput, Action action);
55 public void assertEditInput(boolean after, String cmd, Consumer<String> checkInput, Action action) {
59 public void assertEditOutput(boolean after, String cmd, Consumer<String> checkOutput, Action action) {
H A DStartOptionTest.java44 import java.util.function.Consumer;
89 protected void check(ByteArrayOutputStream str, Consumer<String> checkOut, String label) {
100 protected void start(Consumer<String> checkCmdOutput,
101 Consumer<String> checkUserOutput, Consumer<String> checkError,
H A DSnippetStatusListenerTest.java34 import java.util.function.Consumer;
106 private static class SnippetListener implements Consumer<SnippetEvent> {
/openjdk9/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/
H A DUtil.java42 import java.util.function.Consumer;
94 Map<String, Consumer<OutputStream>> outputStreamMap,
95 Map<String, Consumer<InputStream>> inputStreamMap) throws IOException {
96 for (Entry<String, Consumer<OutputStream>> e : outputStreamMap.entrySet()) {
104 for (Entry<String, Consumer<InputStream>> e : inputStreamMap.entrySet()) {
213 public static void detectJdiExitEvent(VirtualMachine vm, Consumer<String> unbiddenExitHandler) {
/openjdk9/langtools/src/jdk.jshell/share/classes/jdk/jshell/
H A DJShell.java45 import java.util.function.Consumer;
68 * {@link jdk.jshell.JShell#onSnippetEvent(java.util.function.Consumer) onSnippetEvent(Consumer)}
69 * and {@link jdk.jshell.JShell#onShutdown(java.util.function.Consumer) onShutdown(Consumer)}, which
105 private final Map<Subscription, Consumer<JShell>> shutdownListeners = new HashMap<>();
106 private final Map<Subscription, Consumer<SnippetEvent>> keyStatusListeners = new HashMap<>();
484 * @see JShell#onShutdown(java.util.function.Consumer)
726 public Subscription onSnippetEvent(Consumer<SnippetEvent> listener)
740 public Subscription onShutdown(Consumer<JShel
[all...]
/openjdk9/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/
H A DResponseContent.java31 import java.util.function.Consumer;
48 private final Consumer<Optional<ByteBuffer>> dataConsumer;
49 private final Consumer<IOException> errorConsumer;
59 Consumer<Optional<ByteBuffer>> dataConsumer,
60 Consumer<IOException> errorConsumer,
H A DAsyncSSLConnection.java33 import java.util.function.Consumer;
178 public void setAsyncCallbacks(Consumer<ByteBufferReference> asyncReceiver,
179 Consumer<Throwable> errorReceiver,
/openjdk9/jdk/test/java/util/concurrent/ConcurrentMap/
H A DConcurrentRemoveIf.java48 import java.util.function.Consumer;
67 Map<String, Consumer<ConcurrentMap<Integer, Integer>>> actions = new HashMap<>();
72 Map<String, Consumer<ConcurrentNavigableMap<Integer, Integer>>> navActions = new HashMap<>();
121 public void testMap(String desc, Supplier<ConcurrentMap<Integer, Integer>> ms, Consumer<ConcurrentMap<Integer, Integer>> action)
128 private void testMap(ConcurrentMap<Integer, Integer> map, Consumer<ConcurrentMap<Integer, Integer>> action)
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.asm/src/org/graalvm/compiler/asm/
H A DAssembler.java29 import java.util.function.Consumer;
59 protected Consumer<CodeAnnotation> codePatchingAnnotationConsumer;
66 public void setCodePatchingAnnotationConsumer(Consumer<CodeAnnotation> codeAnnotationConsumer) {
/openjdk9/jdk/src/java.base/share/classes/java/nio/file/
H A DFileChannelLinesSpliterator.java39 import java.util.function.Consumer;
100 public boolean tryAdvance(Consumer<? super String> action) {
111 public void forEachRemaining(Consumer<? super String> action) {
/openjdk9/jdk/src/java.base/share/classes/java/util/
H A DOptional.java27 import java.util.function.Consumer;
41 * {@link #ifPresent(Consumer) ifPresent()} (performs an
173 public void ifPresent(Consumer<? super T> action) {
191 public void ifPresentOrElse(Consumer<? super T> action, Runnable emptyAction) {
/openjdk9/jdk/src/java.base/share/classes/java/util/concurrent/
H A DCopyOnWriteArraySet.java45 import java.util.function.Consumer;
424 public void forEach(Consumer<? super E> action) {
/openjdk9/jdk/src/java.base/share/classes/java/util/stream/
H A DSink.java28 import java.util.function.Consumer;
34 * An extension of {@link Consumer} used to conduct values through the stages of
88 * {@code Consumer}, and re-abstract the appropriate primitive specialization of
117 interface Sink<T> extends Consumer<T> {
/openjdk9/hotspot/test/compiler/jvmci/
H A DSecurityRestrictionsTest.java62 import java.util.function.Consumer;
149 Consumer<Throwable> exceptionCheck = e -> {
/openjdk9/hotspot/test/compiler/compilercontrol/share/processors/
H A DLogProcessor.java39 import java.util.function.Consumer;
47 public class LogProcessor implements Consumer<OutputAnalyzer> {
H A DPrintProcessor.java37 import java.util.function.Consumer;
45 public class PrintProcessor implements Consumer<OutputAnalyzer> {
H A DPrintDirectivesProcessor.java34 import java.util.function.Consumer;
40 implements Consumer<List<OutputAnalyzer>> {
/openjdk9/jdk/src/java.base/share/classes/java/lang/ref/
H A DReferenceQueue.java28 import java.util.function.Consumer;
183 void forEach(Consumer<? super Reference<? extends T>> action) {
/openjdk9/jdk/test/java/net/spi/URLStreamHandlerProvider/
H A DBasic.java40 import java.util.function.Consumer;
84 static final Consumer<Result> KNOWN = r -> {
88 static final Consumer<Result> UNKNOWN = r -> {
94 static final Consumer<Result> SCE = r -> {
101 static void unknownProtocol(String protocol, Consumer<Result> resultChecker) {
108 static void viaProvider(String protocol, Consumer<Result> resultChecker,
117 static void viaBadProvider(String protocol, Consumer<Result> resultChecker,
127 Consumer<Result> resultChecker,
/openjdk9/nashorn/test/src/jdk/dynalink/beans/test/
H A DBeansLinkerTest.java40 import java.util.function.Consumer;
260 private static void testPermutations(final NamespaceOperation[] ops, final Operation requiredOp, final Namespace requiredNamespace, final int expectedCount, final Consumer<NamespaceOperation> test) {
264 private static void testPermutations(final NamespaceOperation[] ops, final Pattern regex, final int expectedCount, final Consumer<NamespaceOperation> test) {
268 private static void testPermutations(final NamespaceOperation[] ops, final Consumer<NamespaceOperation> test) {
272 private static void testPermutationsWithFilter(final NamespaceOperation[] ops, final Predicate<NamespaceOperation> filter, final int expectedCount, final Consumer<NamespaceOperation> test) {
278 private static void testGetterPermutations(final Namespace requiredNamespace, final Consumer<NamespaceOperation> test) {
282 private static void testGetterPermutations(final Pattern regex, final int expectedCount, final Consumer<NamespaceOperation> test) {
286 private static void testSetterPermutations(final Namespace requiredNamespace, final Consumer<NamespaceOperation> test) {
/openjdk9/jdk/test/sun/security/x509/URICertStore/
H A DExtensionsWithLDAP.java55 import java.util.function.Consumer;
159 Consumer<Socket> socketConsumer = (Socket socket) -> {
/openjdk9/jdk/test/tools/jimage/
H A DJImageTest.java35 import java.util.function.Consumer;
73 Consumer<Path> c = (p) -> {
H A DJImageCliTest.java32 import java.util.function.Consumer;
103 JImageResult resultChecker(Consumer<JImageResult> r) { r.accept(this); return this; }

Completed in 148 milliseconds

12345678910