org.opendaylight.serviceutils.metrics.function.CheckedFunction Maven / Gradle / Ivy
/*
* Copyright © 2018 Red Hat, Inc. and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.serviceutils.metrics.function;
/**
* {@link java.util.function.Function} which can throw a checked exception.
*
* @param The type of the input to be processed.
* @param The type of the result to be returned.
* @param The type of the exception which may be thrown.
*/
@FunctionalInterface
public interface CheckedFunction {
R apply(T input) throws E;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy