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

org.conqat.lib.commons.lang.SilentAutoClosable Maven / Gradle / Ivy

There is a newer version: 2024.7.2
Show newest version
package org.conqat.lib.commons.lang;

/**
 * Special kind of {@link AutoCloseable}, where no (checked) Exception is thrown.
 */
public interface SilentAutoClosable extends AutoCloseable {

	@Override
	void close();

	/**
	 * @return A no-op {@link SilentAutoClosable}.
	 */
	static SilentAutoClosable empty() {
		return () -> {
		};
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy