Package org.craftercms.commons.lang
Interface Callback<T>
-
public interface Callback<T>
Represents a general callback that can be used almost in any method that needs this pattern.- Author:
- avasquez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
execute()
Executes the callback, returning the result or throwing a runtime exception if an error occurs.
-
-
-
Method Detail
-
execute
T execute()
Executes the callback, returning the result or throwing a runtime exception if an error occurs.- Returns:
- the result of the execution
-
-