Interface Apply.ResultError<T,V,E extends Throwable>

Type Parameters:
T - the type of data you enter as a parameter
V - the result generated when called
E - the type of error when the interface is called
All Superinterfaces:
Apply
All Known Subinterfaces:
Apply.ResultErrorSafe<T,V,E>
Enclosing interface:
Apply

public static interface Apply.ResultError<T,V,E extends Throwable> extends Apply
Very similar to the Apply.Result interface but with the difference that it can generate an error at the time of its call
  • Method Details

    • apply

      V apply(T item) throws E
      Apply configuration to the object and return it as a result
      Parameters:
      item - target element to which the changes will be applied
      Returns:
      returns the resulting object after applying the configuration
      Throws:
      E - error if something goes wrong