All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.icij.extract.mysql.CheckedConsumer Maven / Gradle / Ivy

There is a newer version: 7.3.0
Show newest version
package org.icij.extract.mysql;

import java.sql.SQLException;
import java.util.function.Consumer;

@FunctionalInterface
public interface CheckedConsumer extends Consumer {

	void acceptThrows(final T t) throws SQLException;

	@Override
	default void accept(final T t) {
		try {
			acceptThrows(t);
		} catch (final SQLException e) {
			throw new RuntimeException(e);
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy