Interface Apply.ResultErrorSafe<T,V>

All Superinterfaces:
Apply, Apply.ResultError<T,V>
Enclosing interface:
Apply

public static interface Apply.ResultErrorSafe<T,V> extends Apply.ResultError<T,V>
  • Method Details

    • safeApply

      default Optional<V> safeApply(T item)
      The same behavior of Apply.ResultError.apply(Object) but without launch any error
      Parameters:
      item - target element to which the changes will be applied
      Returns:
      returns the resulting object after applying the configuration or Optional.empty() if action fail