Package codes.domix.fun


package codes.domix.fun
  • Class
    Description
    Option<Value>
    A sealed interface representing an optional value with two possible states: either a value is present ("Some") or absent ("None").
    Represents a variant of the Option type that signifies the absence of a 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 type Error.
    Result.Ok<Value,Error>
    Represents a successful result containing a value of type Value.
    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.
    Represents a computational failure within a context that implements the Try interface.
    Represents a successful computation result within the Try monad pattern.
    Tuple2<A,B>
    An immutable tuple holding two values of potentially different types.