org.craftercms.commons.lang.Callback Maven / Gradle / Ivy
package org.craftercms.commons.lang;
/**
* Represents a general callback that can be used almost in any method that needs this pattern.
*
* @author avasquez
*/
public interface Callback {
/**
* Executes the callback, returning the result or throwing a runtime exception if an error occurs.
*
* @return the result of the execution
*/
T execute();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy