Interface Apply.EmptyErrorSafe<T,E extends Throwable>

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

public static interface Apply.EmptyErrorSafe<T,E extends Throwable> extends Apply.EmptyError<T,E>
Very similar to the Apply interface but with the difference that it can generate an error at the time of its call.

Unlike Apply.EmptyError this can be called without generating any errors, but its use is not recommended unless you know what you are doing.

  • Method Details

    • safeApply

      default void safeApply(T item)
      The same behavior of Apply.EmptyError.apply(Object) but without launch any error
      Parameters:
      item - target element to which the changes will be applied