Package dmx.fun
package dmx.fun
-
ClassDescriptionAccumulator<E,
A> An immutable pair of a computed valueAand a side-channel accumulationE.A functional interface representing an operation that accepts a single input argument, returns no result, and may throw a checked exception.CheckedFunction<T,R> A functional interface representing a function that accepts one argument, produces a result, and may throw a checked exception.A functional interface representing a runnable that may throw a checked exception.A functional interface representing a supplier that can produce a value and may throw a checked exception.Either<L,R> A disjoint union that is either aEither.Leftor aEither.Right.Either.Left<L,R> The left variant ofEither.Either.Right<L,R> The right variant ofEither.Guard<T>A named, composable predicate that produces aValidatedresult when applied to a value.Lazy<T>A lazily evaluated value that is computed at most once.NonEmptyList<T>An immutable, non-empty list: a list guaranteed at construction time to contain at least one element.NonEmptyMap<K,V> An immutable, non-empty map: a map guaranteed at construction time to contain at least one entry.NonEmptySet<T>An immutable, non-empty set: a set guaranteed at construction time to contain at least one element.Option<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 theOptiontype that signifies the absence of a value.Option.Some<Value>Represents a container object that holds a non-null value.QuadFunction<A,B, C, D, R> A functional interface for a function that accepts four arguments and produces a result.Resource<T>A functional managed resource: a value that must be acquired before use and released afterward.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.Result.Partition<V,E> A typed container holding the two partitions produced byResult.partitioningBy().TriFunction<A,B, C, R> A functional interface for a function that accepts three arguments and produces a result.Try<Value>A monadic type that represents a computation that may either result in a value (Try.Success) or throw an exception (Try.Failure).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.Tuple3<A,B, C> An immutable triple holding three values of potentially different types.Tuple4<A,B, C, D> An immutable quadruple holding four values of potentially different types.Validated<E,A> A sealed interface representing a validated value that can either be a successful value (Validated.Valid) or an error (Validated.Invalid).Validated.Invalid<E,A> Represents an invalid result containing an error of typeE.Validated.Valid<E,A> Represents a valid result containing a value of typeA.