Package codes.domix.fun
package codes.domix.fun
-
ClassDescriptionOption<Value>A sealed interface representing an optional value with two possible states: either a value is present ("Some") or absent ("None").Option.None<Value>Represents a variant of the
Optiontype that signifies the absence of a value.Option.Some<Value>Represents a container object that holds a non-null value.Result<Value,Error> A generic sealed interface representing a result type that can either be a successful value (Result.Ok) or an error (Result.Err).Result.Err<Value,Error> Represents an erroneous result containing an error of typeError.Result.Ok<Value,Error> Represents a successful result containing a value of typeValue.Try<Value>A monadic type that represents a computation that may either result in a value (Try.Success) or throw an exception (Try.Failure).Functional interface for runnables that can throw checked exceptions.A functional interface representing a supplier that can produce a value and may throw a checked exception.Try.Failure<Value>Represents a computational failure within a context that implements theTryinterface.Try.Success<Value>Represents a successful computation result within the Try monad pattern.Tuple2<A,B> An immutable tuple holding two values of potentially different types.