Package ushiosan.jvm_utilities.function
Interface Apply.ResultErrorSafe<T,V,E extends Throwable>
- Type Parameters:
T- the type of data you enter as a parameterV- the result generated when calledE- the type of error when the interface is called
- All Superinterfaces:
Apply,Apply.ResultError<T,V, E>
- Enclosing interface:
- Apply
public static interface Apply.ResultErrorSafe<T,V,E extends Throwable>
extends Apply.ResultError<T,V,E>
Very similar to the
Apply.ResultError interface but with the difference that it can generate
an error at the time of its call.
Unlike Apply.ResultError this can be called without generating any errors, but its use
is not recommended unless you know what you are doing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ushiosan.jvm_utilities.function.Apply
Apply.Empty<T>, Apply.EmptyError<T,E extends Throwable>, Apply.EmptyErrorSafe<T, E extends Throwable>, Apply.Result<T, V>, Apply.ResultError<T, V, E extends Throwable>, Apply.ResultErrorSafe<T, V, E extends Throwable> -
Method Summary
Modifier and TypeMethodDescriptionThe same behavior ofApply.ResultError.apply(Object)but without launch any errorMethods inherited from interface ushiosan.jvm_utilities.function.Apply.ResultError
apply
-
Method Details
-
safeApply
The same behavior ofApply.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
-