Interface Result<T>

Type Parameters:
T - the type of the value
All Known Implementing Classes:
Failure, Success

public sealed interface Result<T> permits Success<T>, Failure<T>
A sealed interface representing a computation that may either result in a value (success) or an exception (failure).
Author:
Juan Antonio BreƱa Moral, ChatGPT-40