List of usage examples for java.util.function Consumer interface-usage
From source file urls.CurlStore.java
/**
* Copyright 2016 Kunal Sheth
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
From source file com.yqboots.fss.core.support.FileItemConsumer.java
/**
* The Consumer for FileItem, to consume the Path.
*
* @author Eric H B Zhan
* @since 1.0.0
*/
From source file dk.dma.vessel.track.VesselTrackHandler.java
/** * Receives AIS packets from the AIS bus and passes the packets to the underlying store */ @Service public class VesselTrackHandler implements Consumer<AisPacket> {
From source file org.pdfsam.ui.selection.LoadingStatusIndicatorUpdater.java
/**
* Consumer taking care of updating a {@link Labeled} indicator based on the input {@link PdfDescriptorLoadingStatus}
*
* @author Andrea Vacondio
*
*/
From source file org.apache.metron.performance.load.monitor.writers.ConsoleWriter.java
public class ConsoleWriter implements Consumer<Writable> { private String getSummary(DescriptiveStatistics stats) { return String.format("Mean: %d, Std Dev: %d", (int) stats.getMean(), (int) Math.sqrt(stats.getVariance())); }
From source file org.springframework.cloud.gateway.rsocket.registry.RegistryRoutes.java
/** * Creates routes from RegisteredEvents. */ public class RegistryRoutes implements Routes, Consumer<Registry.RegisteredEvent> { private static final Log log = LogFactory.getLog(RegistryRoutes.class);
From source file com.github.benmanes.caffeine.cache.node.NodeRule.java
/**
* A code generation rule for a node. This class holds the common state and methods for rules to
* act upon and mutate.
*
* @author ben.manes@gmail.com (Ben Manes)
*/
From source file ubicrypt.ui.ctrl.LoginController.java
public class LoginController implements Initializable, Consumer<HostServices> { private static final Logger log = getLogger(LoginController.class); @FXML Button submit; @FXML Label errorLabel;
From source file ubicrypt.ui.ctrl.CreateKeyController.java
public class CreateKeyController implements Initializable, Consumer<HostServices> { private static final Logger log = getLogger(CreateKeyController.class); @FXML PasswordField pwd; @FXML PasswordField pwd2;
From source file ubicrypt.ui.ctrl.ConfirmPKController.java
public class ConfirmPKController implements Initializable, Consumer<PGPPublicKey> { private static final Logger log = getLogger(ConfirmPKController.class); @FXML Label creationDate; @FXML Label algorithm;