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

com.softicar.platform.common.core.interfaces.INullaryVoidFunction Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.core.interfaces;

/**
 * Functional interface for functions taking no parameters and returning
 * void.
 *
 * @author Oliver Richers
 */
@FunctionalInterface
public interface INullaryVoidFunction {

	/**
	 * Returns a default implementation that does nothing.
	 */
	static INullaryVoidFunction noOperation() {

		return NO_OPERATION;
	}

	/**
	 * A default implementation that does nothing.
	 */
	INullaryVoidFunction NO_OPERATION = () -> {
		// nothing to do by definition
	};

	void apply();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy