com.softicar.platform.common.core.interfaces.INullaryVoidFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
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();
}