Lines Matching refs:Consumer
45 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<JShell> listener)
761 Consumer<Subscription> remover;
763 Subscription(Consumer<Subscription> remover) {
823 private synchronized <T> Subscription onX(Map<Subscription, Consumer<T>> map, Consumer<T> listener)