Index

A B C D E F G H I K L M N O P Q R S T U V W Z _ 
All Classes and Interfaces|All Packages|Serialized Form

A

accept(T) - Method in interface dmx.fun.CheckedConsumer
Performs this operation on the given argument, potentially throwing a checked exception.
Accessing the value - Section in record class dmx.fun.Accumulator
 
accumulated() - Method in record class dmx.fun.Accumulator
Returns the value of the accumulated record component.
Accumulator<E,A> - Record Class in dmx.fun
An immutable pair of a computed value A and a side-channel accumulation E.
Accumulator(A, E) - Constructor for record class dmx.fun.Accumulator
Compact canonical constructor — validates that accumulated is non-null.
and(Guard) - Method in interface dmx.fun.Guard
Returns a composed guard that requires both this guard and other to pass.
append(T) - Method in class dmx.fun.NonEmptyList
Returns a new NonEmptyList with element appended at the end.
apply(A, B, C) - Method in interface dmx.fun.TriFunction
Applies this function to the given arguments.
apply(A, B, C, D) - Method in interface dmx.fun.QuadFunction
Applies this function to the given arguments.
apply(T) - Method in interface dmx.fun.CheckedFunction
Applies this function to the given argument, potentially throwing a checked exception.
asPredicate() - Method in interface dmx.fun.Guard
Returns a standard Predicate<T> that returns true when this guard passes and false when it fails.
assertThat(Option) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for an Option.
assertThat(Result) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for a Result.
assertThat(Try) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for a Try.
assertThat(Tuple2) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for a Tuple2.
assertThat(Tuple3) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for a Tuple3.
assertThat(Tuple4) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for a Tuple4.
assertThat(Validated) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for a Validated.

B

Behaviour contract - Section in class dmx.fun.Resource
 

C

cause() - Method in record class dmx.fun.Try.Failure
Returns the value of the cause record component.
check(T) - Method in interface dmx.fun.Guard
Applies this guard to value.
CheckedConsumer<T> - Interface in dmx.fun
A functional interface representing an operation that accepts a single input argument, returns no result, and may throw a checked exception.
CheckedFunction<T,R> - Interface in dmx.fun
A functional interface representing a function that accepts one argument, produces a result, and may throw a checked exception.
CheckedRunnable - Interface in dmx.fun
A functional interface representing a runnable that may throw a checked exception.
CheckedSupplier<T> - Interface in dmx.fun
A functional interface representing a supplier that can produce a value and may throw a checked exception.
checkToOption(T) - Method in interface dmx.fun.Guard
Applies this guard to value and returns an Option<T>.
checkToResult(T) - Method in interface dmx.fun.Guard
Applies this guard to value and returns a Result<T, NonEmptyList<String>>.
checkToResult(T, Function) - Method in interface dmx.fun.Guard
Applies this guard to value and returns a Result<T, E>, mapping the accumulated error list to a domain-specific error type via toError.
collector() - Static method in class dmx.fun.NonEmptyList
Returns a Collector that accumulates a Stream<T> into an Option<NonEmptyList<T>>.
collector(BinaryOperator) - Static method in interface dmx.fun.Validated
Returns a Collector that accumulates a stream of Validated<E, A> into a single Validated<E, List<A>>, collecting all valid values and merging all errors left-to-right using errMerge.
collectPresent(Stream) - Static method in interface dmx.fun.Option
Collects all present (non-empty) values from a stream of Option instances into a list.
combine(Accumulator, BinaryOperator, BiFunction) - Method in record class dmx.fun.Accumulator
Combines this accumulator with other by merging their accumulations and applying f to both values to produce a new value.
combine(Validated, BinaryOperator, BiFunction) - Method in interface dmx.fun.Validated
Combines this Validated with other, accumulating errors and merging values.
combine3(Validated, Validated, Validated, BinaryOperator, TriFunction) - Static method in interface dmx.fun.Validated
Combines three independent Validated values, accumulating all errors.
combine4(Validated, Validated, Validated, Validated, BinaryOperator, QuadFunction) - Static method in interface dmx.fun.Validated
Combines four independent Validated values, accumulating all errors.
Composition - Section in class dmx.fun.Resource
 
Composition semantics - Section in interface dmx.fun.Guard
 
concat(NonEmptyList) - Method in class dmx.fun.NonEmptyList
Returns a new NonEmptyList that is the concatenation of this list and other.
contains(T) - Method in class dmx.fun.NonEmptySet
Returns true if this set contains element.
containsError(E) - Method in class dmx.fun.assertj.ResultAssert
Verifies that the Result is Err and contains the given error.
containsKey(K) - Method in class dmx.fun.NonEmptyMap
Returns true if this map contains an entry for key.
containsValue(A) - Method in class dmx.fun.assertj.ValidatedAssert
Verifies that the Validated is Valid and contains the given value.
containsValue(V) - Method in class dmx.fun.assertj.OptionAssert
Verifies that the Option is Some and contains the given value.
containsValue(V) - Method in class dmx.fun.assertj.ResultAssert
Verifies that the Result is Ok and contains the given value.
containsValue(V) - Method in class dmx.fun.assertj.TryAssert
Verifies that the Try is a Success and contains the given value.
contramap(Function) - Method in interface dmx.fun.Guard
Returns a Guard<U> that applies mapper to its input before checking.

D

dmx.fun - module dmx.fun
Functional programming constructions for Java.
dmx.fun - package dmx.fun
 
dmx.fun.assertj - module dmx.fun.assertj
AssertJ custom assertions for dmx-fun types.
dmx.fun.assertj - package dmx.fun.assertj
 
dmx.fun.jackson - module dmx.fun.jackson
Jackson serializers and deserializers for dmx-fun types.
dmx.fun.jackson - package dmx.fun.jackson
 
dmx.fun.spring - module dmx.fun.spring
Spring Framework integration for dmx-fun types.
dmx.fun.spring - package dmx.fun.spring
 
DmxFunAssertions - Class in dmx.fun.assertj
Entry point for AssertJ custom assertions for all dmx-fun types.
DmxFunModule - Class in dmx.fun.jackson
Jackson module that registers serializers and deserializers for all dmx-fun types.
DmxFunModule() - Constructor for class dmx.fun.jackson.DmxFunModule
Constructs a new instance of DmxFunModule.

E

Either<L,R> - Interface in dmx.fun
A disjoint union that is either a Either.Left or a Either.Right.
Either.Left<L,R> - Record Class in dmx.fun
The left variant of Either.
Either.Right<L,R> - Record Class in dmx.fun
The right variant of Either.
equals(Object) - Method in record class dmx.fun.Accumulator
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Either.Left
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Either.Right
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class dmx.fun.NonEmptyList
 
equals(Object) - Method in class dmx.fun.NonEmptyMap
 
equals(Object) - Method in class dmx.fun.NonEmptySet
 
equals(Object) - Method in record class dmx.fun.Option.None
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Option.Some
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Result.Err
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Result.Ok
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Result.Partition
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Try.Failure
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Try.Success
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Tuple2
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Tuple3
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Tuple4
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Validated.Invalid
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Validated.Valid
Indicates whether some other object is "equal to" this one.
err(Error) - Static method in interface dmx.fun.Result
Creates a Result instance representing an erroneous result with the given error value.
err(Error, Class) - Static method in interface dmx.fun.Result
Deprecated, for removal: This API element is subject to removal in a future version.
This overload exists only as a type-inference aid and is no longer needed. Use Result.err(Object) with an explicit type witness or a typed variable instead: Result.<Value, Error>err(error) or Result<Value, Error> r = Result.err(error)
Err(Error) - Constructor for record class dmx.fun.Result.Err
Compact canonical constructor — validates that error is non-null.
error() - Method in record class dmx.fun.Result.Err
Returns the value of the error record component.
error() - Method in record class dmx.fun.Validated.Invalid
Returns the value of the error record component.
errors() - Method in record class dmx.fun.Result.Partition
Returns the value of the errors record component.
eval(Try, CheckedConsumer) - Static method in class dmx.fun.Resource
Creates a Resource<T> from a pre-computed Try<T> and a release function.
execute(Supplier) - Method in class dmx.fun.spring.TxResult
Executes action inside a transaction using the default TransactionDefinition (propagation REQUIRED, isolation DEFAULT).
execute(Supplier) - Method in class dmx.fun.spring.TxTry
Executes action inside a transaction using the default TransactionDefinition (propagation REQUIRED, isolation DEFAULT).
execute(Supplier) - Method in class dmx.fun.spring.TxValidated
Executes action inside a transaction using the default TransactionDefinition (propagation REQUIRED, isolation DEFAULT).
execute(TransactionDefinition, Supplier) - Method in class dmx.fun.spring.TxResult
Executes action inside a transaction configured by def.
execute(TransactionDefinition, Supplier) - Method in class dmx.fun.spring.TxTry
Executes action inside a transaction configured by def.
execute(TransactionDefinition, Supplier) - Method in class dmx.fun.spring.TxValidated
Executes action inside a transaction configured by def.

F

failsWith(Class) - Method in class dmx.fun.assertj.TryAssert
Verifies that the Try is a Failure caused by an exception of the given type.
failure(Throwable) - Static method in interface dmx.fun.Try
Creates a Try instance representing a failure with the given cause.
Failure(Throwable) - Constructor for record class dmx.fun.Try.Failure
Compact canonical constructor — validates that cause is non-null.
filter(BiPredicate) - Method in class dmx.fun.NonEmptyMap
Returns a new NonEmptyMap containing only entries for which predicate returns true, wrapped in Option.some(Object).
filter(Predicate) - Method in class dmx.fun.NonEmptySet
Returns a new NonEmptySet containing elements that satisfy predicate, wrapped in Option.some(Object).
filter(Predicate) - Method in interface dmx.fun.Option
Filters the value of this Option based on the provided predicate.
filter(Predicate) - Method in interface dmx.fun.Try
Filters the Try based on the given predicate.
filter(Predicate, Function) - Method in interface dmx.fun.Try
Filters this Try using a predicate and a contextual error function that receives the value that failed the test.
filter(Predicate, Supplier) - Method in interface dmx.fun.Try
Filters the Try based on the given predicate.
filter(Predicate, Error) - Method in interface dmx.fun.Result
Filters the current result based on the specified predicate.
filter(Predicate, Function) - Method in interface dmx.fun.Result
Filters the current result by applying a given predicate to its value.
flatMap(Function, BinaryOperator) - Method in record class dmx.fun.Accumulator
Chains a computation that itself produces an Accumulator, merging both accumulations using merge.
flatMap(Function) - Method in interface dmx.fun.Either
Applies mapper to the right value and returns the resulting Either, leaving a Either.Left unchanged.
flatMap(Function) - Method in class dmx.fun.Resource
Sequences this resource with an inner resource derived from its value.
flatMap(Function) - Method in class dmx.fun.Lazy
Returns a new Lazy by applying f to this value and flattening the result.
flatMap(Function) - Method in interface dmx.fun.Option
Transforms the current Option value using the provided mapping function and flattens the result.
flatMap(Function) - Method in interface dmx.fun.Try
Applies the provided mapping function to the value contained within this `Try` instance if it represents a successful outcome.
flatMap(Function) - Method in interface dmx.fun.Validated
Fail-fast sequential composition: applies mapper to the value if Validated.Valid.
flatMap(Function) - Method in interface dmx.fun.Result
Applies the given mapping function to the value of a successful Result instance and returns the resulting Result.
flatMapError(Function) - Method in interface dmx.fun.Try
Applies the given mapping function to the cause of a failed Try instance and returns the resulting Try.
flatMapError(Function) - Method in interface dmx.fun.Result
Applies a function to the error of an erroneous result and returns the produced Result.
flatZip(Function) - Method in interface dmx.fun.Option
fold(Function, Function) - Method in interface dmx.fun.Either
Applies onLeft if this is Either.Left, or onRight if this is Either.Right, and returns the result.
fold(Function, Function) - Method in interface dmx.fun.Try
Folds the current Try instance into a single value by applying one of two provided functions.
fold(Function, Function) - Method in interface dmx.fun.Result
Folds this container to a single value by applying the appropriate function.
fold(Function, Function) - Method in record class dmx.fun.Result.Err
Folds this container to a single value by applying the appropriate function.
fold(Function, Function) - Method in record class dmx.fun.Result.Ok
Folds this container to a single value by applying the appropriate function.
fold(Function, Function) - Method in interface dmx.fun.Validated
Folds this container to a single value by applying the appropriate function.
fold(Function, Function) - Method in record class dmx.fun.Validated.Invalid
Folds this container to a single value by applying the appropriate function.
fold(Function, Function) - Method in record class dmx.fun.Validated.Valid
Folds this container to a single value by applying the appropriate function.
fold(Supplier, Function) - Method in interface dmx.fun.Option
Folds the current option into a single value by applying the appropriate function depending on whether the option is a Some or a None.
fromAutoCloseable(CheckedSupplier) - Static method in class dmx.fun.Resource
Creates a Resource<T> from an AutoCloseable supplier.
fromFuture(CompletableFuture) - Static method in class dmx.fun.Lazy
Creates a Lazy that defers the blocking wait for future until the first call to Lazy.get().
fromFuture(CompletableFuture) - Static method in interface dmx.fun.Result
Converts a CompletableFuture into a Result by blocking until the future completes.
fromFuture(CompletableFuture) - Static method in interface dmx.fun.Try
Converts a CompletableFuture into a Try by blocking until the future completes.
fromList(List) - Static method in class dmx.fun.NonEmptyList
Attempts to construct a NonEmptyList from a plain List.
fromMap(Map) - Static method in class dmx.fun.NonEmptyMap
Attempts to construct a NonEmptyMap from a plain Map.
fromOption(Option, E) - Static method in interface dmx.fun.Validated
Converts an Option to a Validated.
fromOption(Option, E) - Static method in interface dmx.fun.Result
Converts an Option to a Result.
fromOption(Option, Supplier) - Static method in interface dmx.fun.Try
Converts an Option to a Try.
fromOptional(Optional) - Static method in interface dmx.fun.Result
Converts a Optional into a Result.
fromOptional(Optional, Supplier) - Static method in interface dmx.fun.Try
Converts a Optional into a Try.
fromOptional(Optional) - Static method in interface dmx.fun.Option
Converts a given Optional instance into an Option instance.
fromResult(Result) - Static method in interface dmx.fun.Option
Converts a Result into an Option.
fromResult(Result) - Static method in interface dmx.fun.Validated
Converts a Result to a Validated.
fromResult(Result) - Static method in interface dmx.fun.Try
Converts a Result into a Try instance.
fromSet(Set) - Static method in class dmx.fun.NonEmptySet
Attempts to construct a NonEmptySet from a plain Set.
fromTry(Try) - Static method in interface dmx.fun.Option
Converts a Try instance into an Option.
fromTry(Try, Function) - Static method in interface dmx.fun.Validated
Converts a Try to a Validated.
fromTry(Try) - Static method in interface dmx.fun.Result
Converts a Try instance into a Result instance.

G

get() - Method in interface dmx.fun.CheckedSupplier
Retrieves and returns a value, potentially throwing a checked exception during execution.
get() - Method in class dmx.fun.Lazy
Returns the value, evaluating the supplier on the first call and caching the result.
get() - Method in interface dmx.fun.Option
Retrieves the value held by this Option instance if it is of type Some.
get() - Method in interface dmx.fun.Result
Retrieves the value contained within this Result instance if it represents a successful result.
get() - Method in interface dmx.fun.Try
Retrieves the value encapsulated in this instance if it represents a success.
get() - Method in interface dmx.fun.Validated
Retrieves the value if this is Validated.Valid.
get(K) - Method in class dmx.fun.NonEmptyMap
Returns the value associated with key, or Option.none() if absent.
getCause() - Method in interface dmx.fun.Try
Retrieves the cause of failure if the instance represents a failed state.
getError() - Method in interface dmx.fun.Result
Retrieves the error value of the current instance if it is an Err.
getError() - Method in interface dmx.fun.Validated
Retrieves the error if this is Validated.Invalid.
getLeft() - Method in interface dmx.fun.Either
Returns the left value.
getOrElse(Value) - Method in interface dmx.fun.Result
Returns the success value if present, or fallback otherwise.
getOrElse(Value) - Method in record class dmx.fun.Result.Err
Returns the success value if present, or fallback otherwise.
getOrElse(Value) - Method in record class dmx.fun.Result.Ok
Returns the success value if present, or fallback otherwise.
getOrElse(A) - Method in interface dmx.fun.Validated
Returns the success value if present, or fallback otherwise.
getOrElse(A) - Method in record class dmx.fun.Validated.Invalid
Returns the success value if present, or fallback otherwise.
getOrElse(A) - Method in record class dmx.fun.Validated.Valid
Returns the success value if present, or fallback otherwise.
getOrElse(Value) - Method in interface dmx.fun.Option
Retrieves the encapsulated value if this Option instance is of type Some, or returns the provided fallback value if this instance is of type None.
getOrElse(Value) - Method in interface dmx.fun.Try
Returns the value if this instance is a Success, or the specified fallback value if it is a Failure.
getOrElseGet(Supplier) - Method in interface dmx.fun.Option
Retrieves the encapsulated value if this Option instance is of type Some, or computes and returns a fallback value supplied by the given fallbackSupplier if this instance is of type None.
getOrElseGet(Supplier) - Method in interface dmx.fun.Try
Returns the value of this Try if it is a Success, or retrieves a fallback value using the provided fallbackSupplier if it is a Failure.
getOrElseGet(Supplier) - Method in interface dmx.fun.Result
Returns the success value if present, or the value produced by supplier otherwise.
getOrElseGet(Supplier) - Method in record class dmx.fun.Result.Err
Returns the success value if present, or the value produced by supplier otherwise.
getOrElseGet(Supplier) - Method in record class dmx.fun.Result.Ok
Returns the success value if present, or the value produced by supplier otherwise.
getOrElseGet(Supplier) - Method in interface dmx.fun.Validated
Returns the success value if present, or the value produced by supplier otherwise.
getOrElseGet(Supplier) - Method in record class dmx.fun.Validated.Invalid
Returns the success value if present, or the value produced by supplier otherwise.
getOrElseGet(Supplier) - Method in record class dmx.fun.Validated.Valid
Returns the success value if present, or the value produced by supplier otherwise.
getOrElseGetWithError(Function) - Method in interface dmx.fun.Result
Returns the value of this Ok, or applies errorMapper to the contained error and returns the result.
getOrNull() - Method in interface dmx.fun.Result
Returns the success value if present, or null otherwise.
getOrNull() - Method in record class dmx.fun.Result.Err
Returns the success value if present, or null otherwise.
getOrNull() - Method in record class dmx.fun.Result.Ok
Returns the success value if present, or null otherwise.
getOrNull() - Method in interface dmx.fun.Validated
Returns the success value if present, or null otherwise.
getOrNull() - Method in record class dmx.fun.Validated.Invalid
Returns the success value if present, or null otherwise.
getOrNull() - Method in record class dmx.fun.Validated.Valid
Returns the success value if present, or null otherwise.
getOrNull() - Method in interface dmx.fun.Option
Retrieves the encapsulated value if this Option instance is of type Some, or returns null if this instance is of type None.
getOrNull() - Method in interface dmx.fun.Try
Returns the value of this Try if it is a Success, or null if it is a Failure.
getOrThrow() - Method in interface dmx.fun.Try
Returns the successful value if this instance is a Success, or throws an exception if this instance is a Failure.
getOrThrow(Function) - Method in interface dmx.fun.Try
Returns the value if this instance is a Success, or throws the exception provided by the exceptionMapper if this instance is a Failure.
getOrThrow(Function) - Method in interface dmx.fun.Result
Returns the success value if present, or throws an exception mapped from the error.
getOrThrow(Function) - Method in record class dmx.fun.Result.Err
Returns the success value if present, or throws an exception mapped from the error.
getOrThrow(Function) - Method in record class dmx.fun.Result.Ok
Returns the success value if present, or throws an exception mapped from the error.
getOrThrow(Function) - Method in interface dmx.fun.Validated
Returns the success value if present, or throws an exception mapped from the error.
getOrThrow(Function) - Method in record class dmx.fun.Validated.Invalid
Returns the success value if present, or throws an exception mapped from the error.
getOrThrow(Function) - Method in record class dmx.fun.Validated.Valid
Returns the success value if present, or throws an exception mapped from the error.
getOrThrow(Supplier) - Method in interface dmx.fun.Option
Retrieves the encapsulated value if this Option instance is of type Some.
getRight() - Method in interface dmx.fun.Either
Returns the right value.
groupingBy(Function) - Static method in interface dmx.fun.Result
Returns a Collector that groups stream elements by a key derived from each element.
groupingBy(Function, Function) - Static method in interface dmx.fun.Result
Returns a Collector that groups stream elements by a key derived from each element and applies a downstream function to each group's NonEmptyList.
Guard<T> - Interface in dmx.fun
A named, composable predicate that produces a Validated result when applied to a value.

H

hasError(E) - Method in class dmx.fun.assertj.ValidatedAssert
Verifies that the Validated is Invalid and contains the given error.
hasFirst(A) - Method in class dmx.fun.assertj.Tuple2Assert
Verifies that the first element equals the given value.
hasFirst(A) - Method in class dmx.fun.assertj.Tuple3Assert
Verifies that the first element equals the given value.
hasFirst(A) - Method in class dmx.fun.assertj.Tuple4Assert
Verifies that the first element equals the given value.
hasFourth(D) - Method in class dmx.fun.assertj.Tuple4Assert
Verifies that the fourth element equals the given value.
hashCode() - Method in record class dmx.fun.Accumulator
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Either.Left
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Either.Right
Returns a hash code value for this object.
hashCode() - Method in class dmx.fun.NonEmptyList
 
hashCode() - Method in class dmx.fun.NonEmptyMap
 
hashCode() - Method in class dmx.fun.NonEmptySet
 
hashCode() - Method in record class dmx.fun.Option.None
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Option.Some
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Result.Err
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Result.Ok
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Result.Partition
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Try.Failure
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Try.Success
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Tuple2
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Tuple3
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Tuple4
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Validated.Invalid
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Validated.Valid
Returns a hash code value for this object.
hasSecond(B) - Method in class dmx.fun.assertj.Tuple2Assert
Verifies that the second element equals the given value.
hasSecond(B) - Method in class dmx.fun.assertj.Tuple3Assert
Verifies that the second element equals the given value.
hasSecond(B) - Method in class dmx.fun.assertj.Tuple4Assert
Verifies that the second element equals the given value.
hasThird(C) - Method in class dmx.fun.assertj.Tuple3Assert
Verifies that the third element equals the given value.
hasThird(C) - Method in class dmx.fun.assertj.Tuple4Assert
Verifies that the third element equals the given value.
hasValue() - Method in record class dmx.fun.Accumulator
Returns true if this accumulator was created with Accumulator.of(Object, Object) or Accumulator.pure(Object, Object) and therefore carries a non-null value.
hasValueSatisfying(Consumer) - Method in class dmx.fun.assertj.OptionAssert
Verifies that the Option is Some and that its value satisfies the given requirement.
head() - Method in class dmx.fun.NonEmptyList
Returns the first element of this list.
head() - Method in class dmx.fun.NonEmptySet
Returns the guaranteed head element of this set (the first inserted element).
headKey() - Method in class dmx.fun.NonEmptyMap
Returns the guaranteed head key of this map.
headValue() - Method in class dmx.fun.NonEmptyMap
Returns the value associated with the head key.

I

intersection(Set) - Method in class dmx.fun.NonEmptySet
Returns a new NonEmptySet containing only elements present in both this set and other, wrapped in Option.some(Object).
invalid(E) - Static method in interface dmx.fun.Validated
Creates an Validated.Invalid instance wrapping the given error.
Invalid(E) - Constructor for record class dmx.fun.Validated.Invalid
Compact canonical constructor — validates that error is non-null.
invalidNel(E) - Static method in interface dmx.fun.Validated
Creates an Validated.Invalid Validated whose error is a singleton NonEmptyList containing error.
isDefined() - Method in interface dmx.fun.Option
Determines whether this instance represents a defined value.
isEmpty() - Method in interface dmx.fun.Option
Checks if this Option instance represents the absence of a value.
isErr() - Method in class dmx.fun.assertj.ResultAssert
Verifies that the Result is Err.
isError() - Method in interface dmx.fun.Result
Returns true if this instance is the error (Result.Err) variant.
isEvaluated() - Method in class dmx.fun.Lazy
Returns true if the supplier has already been evaluated.
isFailure() - Method in class dmx.fun.assertj.TryAssert
Verifies that the Try is a Failure.
isFailure() - Method in interface dmx.fun.Try
Determines if the current instance represents a failure state.
isInvalid() - Method in class dmx.fun.assertj.ValidatedAssert
Verifies that the Validated is Invalid.
isInvalid() - Method in interface dmx.fun.Validated
Returns true if this instance is Validated.Invalid.
isLeft() - Method in interface dmx.fun.Either
Returns true if this is a Either.Left.
isNone() - Method in class dmx.fun.assertj.OptionAssert
Verifies that the Option is None.
isOk() - Method in class dmx.fun.assertj.ResultAssert
Verifies that the Result is Ok.
isOk() - Method in interface dmx.fun.Result
Checks if the current instance represents a successful result.
isRight() - Method in interface dmx.fun.Either
Returns true if this is a Either.Right.
isSome() - Method in class dmx.fun.assertj.OptionAssert
Verifies that the Option is Some.
isSuccess() - Method in class dmx.fun.assertj.TryAssert
Verifies that the Try is a Success.
isSuccess() - Method in interface dmx.fun.Result
Returns true if this instance is the success (Result.Ok) variant.
isSuccess() - Method in interface dmx.fun.Try
Determines if the current instance represents a successful state.
isSuccess() - Method in interface dmx.fun.Validated
Returns true if this instance is the success (Validated.Valid) variant.
isValid() - Method in class dmx.fun.assertj.ValidatedAssert
Verifies that the Validated is Valid.
isValid() - Method in interface dmx.fun.Validated
Returns true if this instance is Validated.Valid.
iterator() - Method in class dmx.fun.NonEmptyList
Returns an iterator over all elements (head first, then tail).
iterator() - Method in class dmx.fun.NonEmptySet
Returns an iterator over all elements (head first, then tail in insertion order).

K

keySet() - Method in class dmx.fun.NonEmptyMap
Returns a NonEmptySet containing all keys of this map in insertion order.

L

Lazy<T> - Class in dmx.fun
A lazily evaluated value that is computed at most once.
left(L) - Static method in interface dmx.fun.Either
Creates a Either.Left instance wrapping the given value.
Left(L) - Constructor for record class dmx.fun.Either.Left
Validates that value is non-null.
liftOption(Option, Function, E) - Static method in record class dmx.fun.Accumulator
Lifts an Option value into an Accumulator, recording a log entry for both the present and absent cases.
liftTry(Try, Function, Function) - Static method in record class dmx.fun.Accumulator
Lifts a Try value into an Accumulator, recording a log entry via successLog on success or failureLog on failure.

M

map(QuadFunction) - Method in record class dmx.fun.Tuple4
Collapses this quadruple into a single value by applying f to all four elements.
map(TriFunction) - Method in record class dmx.fun.Tuple3
Collapses this triple into a single value by applying f to all three elements.
map(Function) - Method in record class dmx.fun.Accumulator
Transforms the value, leaving the accumulation unchanged.
map(Function) - Method in interface dmx.fun.Either
Maps the right value using mapper, leaving a Either.Left unchanged.
map(Function) - Method in class dmx.fun.Lazy
Returns a new Lazy that applies f to this value when evaluated.
map(Function) - Method in class dmx.fun.NonEmptyList
Applies mapper to every element and returns a new NonEmptyList of the results.
map(Function) - Method in class dmx.fun.NonEmptySet
Applies mapper to every element and returns a new NonEmptySet of the results.
map(Function) - Method in class dmx.fun.Resource
Returns a new Resource<R> whose body receives the result of applying fn to the acquired value.
map(Function) - Method in interface dmx.fun.Option
Transforms the current Option using the provided mapping function.
map(Function) - Method in interface dmx.fun.Try
Transforms the value held by this instance using the provided mapping function.
map(Function) - Method in interface dmx.fun.Validated
Transforms the value with mapper if Validated.Valid; leaves Validated.Invalid unchanged.
map(Function) - Method in interface dmx.fun.Result
Transforms the value of a successful Result instance using the provided mapping function.
map2(Option, Option, BiFunction) - Static method in interface dmx.fun.Option
Combines the values of two Option instances using the provided combiner function.
map3(Option, Option, Option, TriFunction) - Static method in interface dmx.fun.Option
Combines the values of three Option instances using the provided TriFunction.
map4(Option, Option, Option, Option, QuadFunction) - Static method in interface dmx.fun.Option
Combines the values of four Option instances using the provided QuadFunction.
mapAccumulated(Function) - Method in record class dmx.fun.Accumulator
Transforms the accumulation, leaving the value unchanged.
mapError(Function) - Method in interface dmx.fun.Validated
Transforms the error with mapper if Validated.Invalid; leaves Validated.Valid unchanged.
mapError(Function) - Method in interface dmx.fun.Result
Transforms the error value of an erroneous Result instance using the provided mapping function.
mapFailure(Function) - Method in interface dmx.fun.Try
Transforms the failure cause using the given function, leaving a Success unchanged.
mapFirst(Function) - Method in record class dmx.fun.Tuple3
Returns a new tuple with f applied to the first element; the other elements are unchanged.
mapFirst(Function) - Method in record class dmx.fun.Tuple4
Returns a new tuple with f applied to the first element; the other elements are unchanged.
mapFourth(Function) - Method in record class dmx.fun.Tuple4
Returns a new tuple with f applied to the fourth element; the other elements are unchanged.
mapKeys(Function) - Method in class dmx.fun.NonEmptyMap
Applies mapper to every key and returns a new NonEmptyMap with the mapped keys and the original values.
mapLeft(Function) - Method in interface dmx.fun.Either
Maps the left value using mapper, leaving a Either.Right unchanged.
mapSecond(Function) - Method in record class dmx.fun.Tuple3
Returns a new tuple with f applied to the second element; the other elements are unchanged.
mapSecond(Function) - Method in record class dmx.fun.Tuple4
Returns a new tuple with f applied to the second element; the other elements are unchanged.
mapThird(Function) - Method in record class dmx.fun.Tuple3
Returns a new tuple with f applied to the third element; the other elements are unchanged.
mapThird(Function) - Method in record class dmx.fun.Tuple4
Returns a new tuple with f applied to the third element; the other elements are unchanged.
mapTry(Function) - Method in class dmx.fun.Resource
Returns a new Resource<R> whose value is obtained by applying a Try-returning function to the acquired value.
mapValues(Function) - Method in class dmx.fun.NonEmptyMap
Applies mapper to every value and returns a new NonEmptyMap with the same keys and mapped values.
match(Runnable, Consumer) - Method in interface dmx.fun.Option
Executes one of the provided actions based on the state of this value.
match(Consumer, Consumer) - Method in interface dmx.fun.Result
Executes one of the two consumers based on the active variant.
match(Consumer, Consumer) - Method in record class dmx.fun.Result.Err
Executes one of the two consumers based on the active variant.
match(Consumer, Consumer) - Method in record class dmx.fun.Result.Ok
Executes one of the two consumers based on the active variant.
match(Consumer, Consumer) - Method in interface dmx.fun.Validated
Executes one of the two consumers based on the active variant.
match(Consumer, Consumer) - Method in record class dmx.fun.Validated.Invalid
Executes one of the two consumers based on the active variant.
match(Consumer, Consumer) - Method in record class dmx.fun.Validated.Valid
Executes one of the two consumers based on the active variant.
merge(NonEmptyMap, BinaryOperator) - Method in class dmx.fun.NonEmptyMap
Returns a new NonEmptyMap that is the union of this map and other.

N

negate() - Method in interface dmx.fun.Guard
Returns a guard that is the logical negation of this guard, using a generic error message.
negate(String) - Method in interface dmx.fun.Guard
Returns a guard that is the logical negation of this guard, using the supplied error message when the original guard passes.
none() - Static method in interface dmx.fun.Option
Creates an instance of Option that represents the absence of a value.
None() - Constructor for record class dmx.fun.Option.None
Creates an instance of a None record class.
NonEmptyList<T> - Class in dmx.fun
An immutable, non-empty list: a list guaranteed at construction time to contain at least one element.
NonEmptyMap<K,V> - Class in dmx.fun
An immutable, non-empty map: a map guaranteed at construction time to contain at least one entry.
NonEmptySet<T> - Class in dmx.fun
An immutable, non-empty set: a set guaranteed at construction time to contain at least one element.

O

of(A, B, C) - Static method in record class dmx.fun.Tuple3
Creates a new Tuple3 with the given elements.
of(A, B, C, D) - Static method in record class dmx.fun.Tuple4
Creates a new Tuple4 with the given elements.
of(A, E) - Static method in record class dmx.fun.Accumulator
Creates an Accumulator pairing a computed value with an initial accumulation.
of(CheckedSupplier, CheckedConsumer) - Static method in class dmx.fun.Resource
Creates a Resource<T> from explicit acquire and release functions.
of(CheckedSupplier) - Static method in interface dmx.fun.Try
Creates a Try instance by executing the given CheckedSupplier.
of(Predicate, String) - Static method in interface dmx.fun.Guard
Creates a Guard<T> from a predicate and a static error message.
of(Predicate, Function) - Static method in interface dmx.fun.Guard
Creates a Guard<T> from a predicate and a dynamic error message function.
of(Supplier) - Static method in class dmx.fun.Lazy
Creates a new Lazy that will evaluate supplier on the first call to Lazy.get().
of(K, V, Map) - Static method in class dmx.fun.NonEmptyMap
Creates a NonEmptyMap with the given head entry and additional entries.
of(T, List) - Static method in class dmx.fun.NonEmptyList
Creates a NonEmptyList with the given head and tail.
of(T, Set) - Static method in class dmx.fun.NonEmptySet
Creates a NonEmptySet with the given head element and additional elements.
ofNullable(V) - Static method in interface dmx.fun.Option
Creates an Option instance that encapsulates a given value.
ok(Value) - Static method in interface dmx.fun.Result
Creates a Result instance representing a successful result with the given value.
ok(Value, Class) - Static method in interface dmx.fun.Result
Deprecated, for removal: This API element is subject to removal in a future version.
This overload exists only as a type-inference aid and is no longer needed. Use Result.ok(Object) with an explicit type witness or a typed variable instead: Result.<Value, Error>ok(value) or Result<Value, Error> r = Result.ok(value)
Ok(Value) - Constructor for record class dmx.fun.Result.Ok
Compact canonical constructor — validates that value is non-null.
oks() - Method in record class dmx.fun.Result.Partition
Returns the value of the oks record component.
onFailure(Consumer) - Method in interface dmx.fun.Try
Executes a specified action if this instance represents a failure.
onSuccess(Consumer) - Method in interface dmx.fun.Try
Performs the given action if the current instance represents a successful outcome.
Option<Value> - Interface in dmx.fun
A sealed interface representing an optional value with two possible states: either a value is present ("Some") or absent ("None").
Option.None<Value> - Record Class in dmx.fun
Represents a variant of the Option type that signifies the absence of a value.
Option.Some<Value> - Record Class in dmx.fun
Represents a container object that holds a non-null value.
OptionAssert<V> - Class in dmx.fun.assertj
AssertJ assertions for Option.
or(Guard) - Method in interface dmx.fun.Guard
Returns a composed guard that passes when at least one of this guard or other passes.
or(Supplier) - Method in interface dmx.fun.Result
Returns this Result if it is Ok; otherwise evaluates the given supplier and returns its result.
orElse(Option) - Method in interface dmx.fun.Option
Returns this Option if it is Some, otherwise returns alternative.
orElse(Result) - Method in interface dmx.fun.Result
Returns this Result if it is Ok, otherwise returns alternative.
orElse(Supplier) - Method in interface dmx.fun.Option
Returns this Option if it is Some, otherwise evaluates and returns the supplier's result.
orElse(Supplier) - Method in interface dmx.fun.Result
Returns this Result if it is Ok, otherwise evaluates and returns the supplier's result.

P

Partition(List, List) - Constructor for record class dmx.fun.Result.Partition
Defensively copies both lists and null-checks them.
partitioningBy() - Static method in interface dmx.fun.Result
Returns a Collector that partitions a Stream<Result<V, E>> into two typed lists: Result.Partition.oks() for values from Ok elements, and Result.Partition.errors() for errors from Err elements.
peek(Consumer) - Method in interface dmx.fun.Either
Executes action if this is a Either.Right, then returns this unchanged.
peek(Consumer) - Method in interface dmx.fun.Option
Applies the provided action to the value contained in this instance if it is of type Some.
peek(Consumer) - Method in interface dmx.fun.Validated
Executes action with the value if Validated.Valid; returns this unchanged.
peek(Consumer) - Method in interface dmx.fun.Result
Executes the given action if the current Result instance represents a successful result.
peekError(Consumer) - Method in interface dmx.fun.Validated
Executes action with the error if Validated.Invalid; returns this unchanged.
peekError(Consumer) - Method in interface dmx.fun.Result
Executes the given action if the current Result instance represents an erroneous result.
peekLeft(Consumer) - Method in interface dmx.fun.Either
Executes action if this is a Either.Left, then returns this unchanged.
prepend(T) - Method in class dmx.fun.NonEmptyList
Returns a new NonEmptyList with element prepended at the front.
presentValuesToList() - Static method in interface dmx.fun.Option
Creates a collector that transforms a stream of Option objects into a list of values by extracting the present values and filtering out any absent values.
product(Validated, BinaryOperator) - Method in interface dmx.fun.Validated
Combines this Validated with other, accumulating errors when both are invalid.
pure(A, E) - Static method in record class dmx.fun.Accumulator
Creates an Accumulator with a value and an empty (identity) accumulation.

Q

QuadFunction<A,B,C,D,R> - Interface in dmx.fun
A functional interface for a function that accepts four arguments and produces a result.
Quick start - Section in class dmx.fun.spring.TxResult
 
Quick start - Section in class dmx.fun.spring.TxTry
 
Quick start - Section in class dmx.fun.spring.TxValidated
 
Quick start - Section in record class dmx.fun.Accumulator
 

R

recover(Class, Function) - Method in interface dmx.fun.Try
Recovers from a failure if — and only if — the exception is an instance of exceptionType, applying the recovery function to produce a new success value.
recover(Function) - Method in interface dmx.fun.Try
Recovers from a failure by applying a recovery function to the underlying throwable.
recover(Function) - Method in interface dmx.fun.Result
Converts an erroneous Result into a successful one by applying the given rescue function to the contained error.
recoverWith(Class, Function) - Method in interface dmx.fun.Try
Recovers from a failure if — and only if — the exception is an instance of exceptionType, by applying the recovery function which returns a new Try<Value> for chaining further fallible computations.
recoverWith(Function) - Method in interface dmx.fun.Try
Recovers from a failure by applying the given recovery function to the cause of the failure.
recoverWith(Function) - Method in interface dmx.fun.Result
Converts an erroneous Result into a new Result by applying the given rescue function to the contained error.
Resource<T> - Class in dmx.fun
A functional managed resource: a value that must be acquired before use and released afterward.
Result<Value,Error> - Interface in dmx.fun
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> - Record Class in dmx.fun
Represents an erroneous result containing an error of type Error.
Result.Ok<Value,Error> - Record Class in dmx.fun
Represents a successful result containing a value of type Value.
Result.Partition<V,E> - Record Class in dmx.fun
A typed container holding the two partitions produced by Result.partitioningBy().
ResultAssert<V,E> - Class in dmx.fun.assertj
AssertJ assertions for Result.
right(R) - Static method in interface dmx.fun.Either
Creates a Either.Right instance wrapping the given value.
Right(R) - Constructor for record class dmx.fun.Either.Right
Validates that value is non-null.
run() - Method in interface dmx.fun.CheckedRunnable
Executes an operation that may throw a checked exception.
run(CheckedRunnable) - Static method in interface dmx.fun.Try
Executes the provided CheckedRunnable and returns a Try instance representing the outcome of the execution.

S

sequence(NonEmptyList) - Static method in class dmx.fun.NonEmptyList
Sequences a NonEmptyList of Options into an Option of a NonEmptyList.
sequence(Iterable) - Static method in interface dmx.fun.Option
Transforms an iterable of Option<V> into a single Option<List<V>>.
sequence(Iterable) - Static method in interface dmx.fun.Result
Transforms an iterable of Result<V, E> into a single Result<List<V>, E>.
sequence(Iterable) - Static method in interface dmx.fun.Try
Transforms an iterable of Try<V> into a single Try<List<V>>.
sequence(Iterable, BinaryOperator) - Static method in interface dmx.fun.Validated
Transforms an iterable of Validated<E, A> into a single Validated<E, List<A>>.
sequence(List, BinaryOperator, E) - Static method in record class dmx.fun.Accumulator
Folds a list of accumulators into a single Accumulator<E, List<A>>, merging all accumulations left-to-right using merge, starting from empty.
sequence(Stream) - Static method in interface dmx.fun.Option
Converts a stream of Option objects into a single Option containing a List of values, if all Option instances in the stream are Option.Some.
sequence(Stream) - Static method in interface dmx.fun.Result
Transforms a stream of Result<V, E> into a single Result<List<V>, E>.
sequence(Stream) - Static method in interface dmx.fun.Try
Transforms a stream of Try<V> into a single Try<List<V>>.
sequence(Stream, BinaryOperator) - Static method in interface dmx.fun.Validated
Transforms a stream of Validated<E, A> into a single Validated<E, List<A>>.
sequenceCollector() - Static method in interface dmx.fun.Option
Returns a Collector that reduces a Stream<Option<V>> to a single Optional<List<V>>.
sequenceNel(Iterable) - Static method in interface dmx.fun.Validated
Sequences an Iterable of Validated<NonEmptyList<E>, A> into a single Validated<NonEmptyList<E>, List<A>>, accumulating all errors using NonEmptyList.concat(NonEmptyList).
singleton(K, V) - Static method in class dmx.fun.NonEmptyMap
Creates a NonEmptyMap containing exactly one entry.
singleton(T) - Static method in class dmx.fun.NonEmptyList
Creates a NonEmptyList containing exactly one element.
singleton(T) - Static method in class dmx.fun.NonEmptySet
Creates a NonEmptySet containing exactly one element.
size() - Method in class dmx.fun.NonEmptyList
Returns the number of elements in this list.
size() - Method in class dmx.fun.NonEmptyMap
Returns the number of entries in this map.
size() - Method in class dmx.fun.NonEmptySet
Returns the number of elements in this set.
some(V) - Static method in interface dmx.fun.Option
Creates a Option.Some instance that encapsulates the given non-null value.
Some(Value) - Constructor for record class dmx.fun.Option.Some
Constructs a new Some instance with the specified non-null value.
stream() - Method in interface dmx.fun.Result
Returns a single-element stream of the success value, or an empty stream on error.
stream() - Method in record class dmx.fun.Result.Err
Returns a single-element stream of the success value, or an empty stream on error.
stream() - Method in record class dmx.fun.Result.Ok
Returns a single-element stream of the success value, or an empty stream on error.
stream() - Method in interface dmx.fun.Validated
Returns a single-element stream of the success value, or an empty stream on error.
stream() - Method in record class dmx.fun.Validated.Invalid
Returns a single-element stream of the success value, or an empty stream on error.
stream() - Method in record class dmx.fun.Validated.Valid
Returns a single-element stream of the success value, or an empty stream on error.
stream() - Method in interface dmx.fun.Option
Returns a stream representation of the current instance.
stream() - Method in interface dmx.fun.Try
Returns a single-element Stream containing the success value, or an empty stream on failure.
success(V) - Static method in interface dmx.fun.Try
Creates a successful Try instance containing the provided value.
Success(Value) - Constructor for record class dmx.fun.Try.Success
Creates an instance of a Success record class.
swap() - Method in interface dmx.fun.Either
Swaps the two sides: Either.Left becomes Either.Right and vice-versa.
swap() - Method in interface dmx.fun.Result
Swaps the Ok and Err channels of this Result.

T

tail() - Method in class dmx.fun.NonEmptyList
Returns an unmodifiable view of all elements after the head.
tell(E) - Static method in record class dmx.fun.Accumulator
Creates an Accumulator that records something without producing a meaningful value.
toEither() - Method in interface dmx.fun.Result
Converts this Result to an Either.
toEither() - Method in interface dmx.fun.Try
Converts this Try to an Either.
toEither() - Method in interface dmx.fun.Validated
Converts this Validated to an Either.
toEither(L) - Method in interface dmx.fun.Option
Converts this Option to an Either.
toFuture() - Method in class dmx.fun.Lazy
Converts this Lazy into a CompletableFuture.
toFuture() - Method in interface dmx.fun.Result
Converts this Result into an already-completed CompletableFuture.
toFuture() - Method in interface dmx.fun.Try
Converts this Try into an already-completed CompletableFuture.
toFuture(Function) - Method in interface dmx.fun.Result
Converts this Result into an already-completed CompletableFuture, using errorMapper to convert the error value into a Throwable when this is Err.
toList() - Method in class dmx.fun.NonEmptyList
Returns an unmodifiable List containing all elements (head followed by tail).
toList() - Static method in interface dmx.fun.Result
Returns a Collector that accumulates a Stream<Result<V, E>> into a single Result<List<V>, E>.
toMap() - Method in class dmx.fun.NonEmptyMap
Returns an unmodifiable Map containing all entries (head entry first, then tail entries in insertion order).
toNonEmptyList() - Static method in class dmx.fun.NonEmptyList
toNonEmptyList() - Method in class dmx.fun.NonEmptyMap
Converts this map to a NonEmptyList of its entries in insertion order.
toNonEmptyList() - Method in class dmx.fun.NonEmptySet
Converts this set to a NonEmptyList of its elements in insertion order.
toNonEmptyMap(Function) - Method in class dmx.fun.NonEmptySet
Returns a NonEmptyMap by applying valueMapper to each element of this set.
toNonEmptySet() - Method in class dmx.fun.NonEmptyList
Converts this list to a NonEmptySet, preserving the head element and deduplicating the tail in insertion order.
toOption() - Method in record class dmx.fun.Accumulator
Returns the value wrapped in Option.some(Object), or Option.none() if this accumulator was created by Accumulator.tell(Object) and has no value.
toOption() - Method in interface dmx.fun.Result
Converts this container to an Option.
toOption() - Method in record class dmx.fun.Result.Err
Converts this container to an Option.
toOption() - Method in record class dmx.fun.Result.Ok
Converts this container to an Option.
toOption() - Method in interface dmx.fun.Validated
Converts this container to an Option.
toOption() - Method in record class dmx.fun.Validated.Invalid
Converts this container to an Option.
toOption() - Method in record class dmx.fun.Validated.Valid
Converts this container to an Option.
toOption() - Method in interface dmx.fun.Either
Converts this Either to an Option: Either.Right becomes Option.some(Object), Either.Left becomes Option.none().
toOption() - Method in class dmx.fun.Lazy
Evaluates this Lazy and wraps the result in an Option.
toOption() - Method in interface dmx.fun.Try
Converts the current instance to an Option.
toOptional() - Method in interface dmx.fun.Option
Converts the current instance of a value or none container into an Optional.
toResult() - Method in record class dmx.fun.Accumulator
Converts this accumulator to a Result: Result.ok(Object) when Accumulator.hasValue() is true, or Result.err(Object) carrying the accumulated side-channel when this accumulator was created by Accumulator.tell(Object).
toResult() - Method in interface dmx.fun.Either
Converts this Either to a Result.
toResult() - Method in class dmx.fun.Lazy
Evaluates this Lazy inside a Result, capturing any exception thrown by the supplier as Err(Throwable).
toResult() - Method in interface dmx.fun.Try
Converts the current Try instance into a Result representation.
toResult() - Method in interface dmx.fun.Validated
Converts this Validated to a Result.
toResult(Function) - Method in class dmx.fun.Lazy
Evaluates this Lazy inside a Result, converting any exception thrown by the supplier into a typed error using errorMapper.
toResult(Function) - Method in interface dmx.fun.Try
Converts this Try into a Result<Value, E> using a custom error mapper.
toResult(TError) - Method in interface dmx.fun.Option
Converts the current option to a Result instance.
toSet() - Method in class dmx.fun.NonEmptySet
Returns an unmodifiable Set containing all elements (head first, then tail in insertion order).
toStream() - Method in class dmx.fun.NonEmptyList
Returns a sequential Stream of all elements (head first, then tail).
toString() - Method in record class dmx.fun.Accumulator
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Either.Left
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Either.Right
Returns a string representation of this record class.
toString() - Method in class dmx.fun.Lazy
Returns a string representation of this Lazy.
toString() - Method in class dmx.fun.NonEmptyList
 
toString() - Method in class dmx.fun.NonEmptyMap
 
toString() - Method in class dmx.fun.NonEmptySet
 
toString() - Method in record class dmx.fun.Option.None
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Option.Some
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Result.Err
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Result.Ok
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Result.Partition
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Try.Failure
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Try.Success
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Tuple2
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Tuple3
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Tuple4
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Validated.Invalid
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Validated.Valid
Returns a string representation of this record class.
toTry() - Method in class dmx.fun.Lazy
Evaluates this Lazy inside a Try, capturing any exception thrown by the supplier as a Failure.
toTry(Function) - Method in interface dmx.fun.Result
Converts the current result into a Try instance.
toTry(Function) - Method in interface dmx.fun.Validated
Converts this Validated to a Try.
toTry(Supplier) - Method in interface dmx.fun.Option
Converts the current instance to a Try instance.
toTuple2() - Method in record class dmx.fun.Accumulator
Converts this accumulator to a Tuple2 of (accumulated, value).
toValidated() - Method in interface dmx.fun.Either
Converts this Either to a Validated.
traverse(Iterable, Function) - Static method in interface dmx.fun.Option
Transforms a collection of values of type A into an optional list of values of type B by applying a given mapping function to each element in the input collection.
traverse(Iterable, Function) - Static method in interface dmx.fun.Result
Maps each element of an iterable through mapper and collects the results into a Result<List<B>, E>.
traverse(Iterable, Function) - Static method in interface dmx.fun.Try
Maps each element of an iterable through mapper and collects the results into a Try<List<B>>.
traverse(Iterable, Function, BinaryOperator) - Static method in interface dmx.fun.Validated
Maps each element of an iterable through mapper and collects the results into a Validated<E, List<B>>, accumulating all errors.
traverse(Stream, Function) - Static method in interface dmx.fun.Option
Transforms a stream of values by applying a mapper function that returns an Option for each input value.
traverse(Stream, Function) - Static method in interface dmx.fun.Result
Maps each element of a stream through mapper and collects the results into a Result<List<B>, E>.
traverse(Stream, Function) - Static method in interface dmx.fun.Try
Maps each element of a stream through mapper and collects the results into a Try<List<B>>.
traverseCollector(Function, BinaryOperator) - Static method in interface dmx.fun.Validated
Returns a Collector that maps each input element through mapper and accumulates the results into a single Validated<E, List<B>>, collecting all valid values and merging all errors left-to-right using errMerge.
traverseNel(Iterable, Function) - Static method in interface dmx.fun.Validated
Maps each element of values through mapper and accumulates the results into a Validated<NonEmptyList<E>, List<B>>, accumulating all errors using NonEmptyList.concat(NonEmptyList).
TriFunction<A,B,C,R> - Interface in dmx.fun
A functional interface for a function that accepts three arguments and produces a result.
Try<Value> - Interface in dmx.fun
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> - Record Class in dmx.fun
Represents a computational failure within a context that implements the Try interface.
Try.Success<Value> - Record Class in dmx.fun
Represents a successful computation result within the Try monad pattern.
TryAssert<V> - Class in dmx.fun.assertj
AssertJ assertions for Try.
Tuple2<A,B> - Record Class in dmx.fun
An immutable tuple holding two values of potentially different types.
Tuple2(A, B) - Constructor for record class dmx.fun.Tuple2
Creates an instance of a Tuple2 record class.
Tuple2Assert<A,B> - Class in dmx.fun.assertj
AssertJ assertions for Tuple2.
Tuple3<A,B,C> - Record Class in dmx.fun
An immutable triple holding three values of potentially different types.
Tuple3(A, B, C) - Constructor for record class dmx.fun.Tuple3
Validates that none of the elements are null.
Tuple3Assert<A,B,C> - Class in dmx.fun.assertj
AssertJ assertions for Tuple3.
Tuple4<A,B,C,D> - Record Class in dmx.fun
An immutable quadruple holding four values of potentially different types.
Tuple4(A, B, C, D) - Constructor for record class dmx.fun.Tuple4
Validates that none of the elements are null.
Tuple4Assert<A,B,C,D> - Class in dmx.fun.assertj
AssertJ assertions for Tuple4.
TxResult - Class in dmx.fun.spring
Spring component that executes a Result-returning action inside a managed transaction, automatically rolling back when the result represents a failure.
TxResult(PlatformTransactionManager) - Constructor for class dmx.fun.spring.TxResult
Creates a TxResult backed by the given transaction manager.
TxTry - Class in dmx.fun.spring
Spring component that executes a Try-returning action inside a managed transaction, automatically rolling back when the result represents a failure.
TxTry(PlatformTransactionManager) - Constructor for class dmx.fun.spring.TxTry
Creates a TxTry backed by the given transaction manager.
TxValidated - Class in dmx.fun.spring
Spring component that executes a Validated-returning action inside a managed transaction, automatically rolling back when the result is Validated.isInvalid().
TxValidated(PlatformTransactionManager) - Constructor for class dmx.fun.spring.TxValidated
Creates a TxValidated backed by the given transaction manager.
Typical accumulation types - Section in record class dmx.fun.Accumulator
 

U

union(NonEmptySet) - Method in class dmx.fun.NonEmptySet
Returns a new NonEmptySet that is the union of this set and other.
use(CheckedFunction) - Method in class dmx.fun.Resource
Acquires the resource, applies body to it, releases the resource, and returns the body's result wrapped in a Try.
useAsResult(Function, Function) - Method in class dmx.fun.Resource
Acquires the resource, applies body to produce a Result, releases the resource, and returns a Result<R, E>.

V

valid(A) - Static method in interface dmx.fun.Validated
Creates a Validated.Valid instance wrapping the given value.
Valid(A) - Constructor for record class dmx.fun.Validated.Valid
Compact canonical constructor — validates that value is non-null.
Validated<E,A> - Interface in dmx.fun
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> - Record Class in dmx.fun
Represents an invalid result containing an error of type E.
Validated.Valid<E,A> - Record Class in dmx.fun
Represents a valid result containing a value of type A.
ValidatedAssert<E,A> - Class in dmx.fun.assertj
AssertJ assertions for Validated.
value() - Method in record class dmx.fun.Accumulator
Returns the value of the value record component.
value() - Method in record class dmx.fun.Either.Left
Returns the value of the value record component.
value() - Method in record class dmx.fun.Either.Right
Returns the value of the value record component.
value() - Method in record class dmx.fun.Option.Some
Returns the value of the value record component.
value() - Method in record class dmx.fun.Result.Ok
Returns the value of the value record component.
value() - Method in record class dmx.fun.Try.Success
Returns the value of the value record component.
value() - Method in record class dmx.fun.Validated.Valid
Returns the value of the value record component.
values() - Method in class dmx.fun.NonEmptyMap
Returns a NonEmptyList containing all values of this map in insertion order.

W

withTimeout(Duration, CheckedSupplier) - Static method in interface dmx.fun.Try
Executes supplier on a virtual thread and returns the result as a Try.

Z

zip(Option, Option) - Static method in interface dmx.fun.Option
Combines two Option instances into a single Option containing a Tuple2 of the values if both options are non-empty.
zip(Option) - Method in interface dmx.fun.Option
Combines the current Option instance with another Option instance into a single Option containing a Tuple2 of their values, if both options are non-empty.
zip(Result, Result) - Static method in interface dmx.fun.Result
Combines two Result values into a single Result containing a Tuple2.
zip(Try, Try) - Static method in interface dmx.fun.Try
Combines two Try values into a single Try containing a Tuple2.
zip3(Option, Option, Option) - Static method in interface dmx.fun.Option
Combines three Option instances into a single Option containing a Tuple3.
zip3(Option, Option) - Method in interface dmx.fun.Option
Combines this Option with two others into an Option<Tuple3>.
zip3(Result, Result, Result) - Static method in interface dmx.fun.Result
Combines three Result values into a single Result containing a Tuple3.
zip3(Try, Try, Try) - Static method in interface dmx.fun.Try
Combines three Try values into a single Try containing a Tuple3.
zip4(Option, Option, Option, Option) - Static method in interface dmx.fun.Option
Combines four Option instances into a single Option containing a Tuple4.
zip4(Option, Option, Option) - Method in interface dmx.fun.Option
Combines this Option with three others into an Option<Tuple4>.
zip4(Result, Result, Result, Result) - Static method in interface dmx.fun.Result
Combines four Result values into a single Result containing a Tuple4.
zip4(Try, Try, Try, Try) - Static method in interface dmx.fun.Try
Combines four Try values into a single Try containing a Tuple4.
zipWith(Option, BiFunction) - Method in interface dmx.fun.Option
Combines the values of this Option with the values of another Option using a provided combining function.
zipWith(Function) - Method in interface dmx.fun.Option
Applies mapper to the value inside this Option and pairs the original value with the result.
zipWith3(Option, Option, TriFunction) - Method in interface dmx.fun.Option
Combines this Option with two others using a TriFunction.
zipWith3(Result, Result, Result, TriFunction) - Static method in interface dmx.fun.Result
Combines three Result values using a TriFunction.
zipWith3(Try, Try, Try, TriFunction) - Static method in interface dmx.fun.Try
Combines three Try values using a TriFunction.
zipWith4(Option, Option, Option, QuadFunction) - Method in interface dmx.fun.Option
Combines this Option with three others using a QuadFunction.
zipWith4(Result, Result, Result, Result, QuadFunction) - Static method in interface dmx.fun.Result
Combines four Result values using a QuadFunction.
zipWith4(Try, Try, Try, Try, QuadFunction) - Static method in interface dmx.fun.Try
Combines four Try values using a QuadFunction.

_

_1() - Method in record class dmx.fun.Tuple2
Returns the value of the _1 record component.
_1() - Method in record class dmx.fun.Tuple3
Returns the value of the _1 record component.
_1() - Method in record class dmx.fun.Tuple4
Returns the value of the _1 record component.
_2() - Method in record class dmx.fun.Tuple2
Returns the value of the _2 record component.
_2() - Method in record class dmx.fun.Tuple3
Returns the value of the _2 record component.
_2() - Method in record class dmx.fun.Tuple4
Returns the value of the _2 record component.
_3() - Method in record class dmx.fun.Tuple3
Returns the value of the _3 record component.
_3() - Method in record class dmx.fun.Tuple4
Returns the value of the _3 record component.
_4() - Method in record class dmx.fun.Tuple4
Returns the value of the _4 record component.
A B C D E F G H I K L M N O P Q R S T U V W Z _ 
All Classes and Interfaces|All Packages|Serialized Form