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

    Modifier and Type
    Method
    Description
    Executes the callback, returning the result or throwing a runtime exception if an error occurs.
  • Method Details

    • execute

      T execute()
      Executes the callback, returning the result or throwing a runtime exception if an error occurs.
      Returns:
      the result of the execution