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.
accepts(T) - Method in class dmx.fun.assertj.GuardAssert
Verifies that the guard accepts (validates successfully) the given value.
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.
accumulationContains(Object) - Method in class dmx.fun.assertj.AccumulatorAssert
Verifies that the accumulator's side-channel (which must be a Collection) contains the given element.
accumulationHasSize(int) - Method in class dmx.fun.assertj.AccumulatorAssert
Verifies that the accumulator's side-channel (which must be a Collection) has the given size.
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.
AccumulatorAssert<E,A> - Class in dmx.fun.assertj
AssertJ assertions for Accumulator.
adaptFromJson(List) - Method in class dmx.fun.jakarta.jaxb.NonEmptyListJsonbAdapter
 
adaptFromJson(Map) - Method in class dmx.fun.jakarta.jaxb.EitherJsonbAdapter
 
adaptFromJson(Map) - Method in class dmx.fun.jakarta.jaxb.OptionJsonbAdapter
 
adaptFromJson(Map) - Method in class dmx.fun.jakarta.jaxb.ResultJsonbAdapter
 
adaptFromJson(Map) - Method in class dmx.fun.jakarta.jaxb.TryJsonbAdapter
 
adaptFromJson(Map) - Method in class dmx.fun.jakarta.jaxb.Tuple2JsonbAdapter
 
adaptFromJson(Map) - Method in class dmx.fun.jakarta.jaxb.Tuple3JsonbAdapter
 
adaptFromJson(Map) - Method in class dmx.fun.jakarta.jaxb.Tuple4JsonbAdapter
 
adaptFromJson(Map) - Method in class dmx.fun.jakarta.jaxb.ValidatedJsonbAdapter
 
adaptToJson(Either) - Method in class dmx.fun.jakarta.jaxb.EitherJsonbAdapter
 
adaptToJson(NonEmptyList) - Method in class dmx.fun.jakarta.jaxb.NonEmptyListJsonbAdapter
 
adaptToJson(Option) - Method in class dmx.fun.jakarta.jaxb.OptionJsonbAdapter
 
adaptToJson(Result) - Method in class dmx.fun.jakarta.jaxb.ResultJsonbAdapter
 
adaptToJson(Try) - Method in class dmx.fun.jakarta.jaxb.TryJsonbAdapter
 
adaptToJson(Tuple2) - Method in class dmx.fun.jakarta.jaxb.Tuple2JsonbAdapter
 
adaptToJson(Tuple3) - Method in class dmx.fun.jakarta.jaxb.Tuple3JsonbAdapter
 
adaptToJson(Tuple4) - Method in class dmx.fun.jakarta.jaxb.Tuple4JsonbAdapter
 
adaptToJson(Validated) - Method in class dmx.fun.jakarta.jaxb.ValidatedJsonbAdapter
 
add(T) - Method in class dmx.fun.NonEmptyList
 
addAll(Collection) - Method in class dmx.fun.NonEmptyList
 
addFirst(T) - Method in class dmx.fun.NonEmptyList
Unsupported — NonEmptyList is immutable.
addLast(T) - Method in class dmx.fun.NonEmptyList
Unsupported — NonEmptyList is immutable.
all() - Static method in class dmx.fun.jakarta.jaxb.DmxFunJsonbAdapters
Returns all dmx-fun JSON-B adapters, ready for JsonbConfig.withAdapters(JsonbAdapter...).
all() - Static method in class dmx.fun.jakarta.jaxb.DmxFunXmlAdapters
Returns all dmx-fun JAXB adapters as an array, suitable for programmatic registration.
and(Guard) - Method in interface dmx.fun.Guard
Returns a composed guard that requires both this guard and other to pass.
andThen(Guard) - Method in interface dmx.fun.Guard
Returns a composed guard that evaluates next only when this guard passes.
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.
aroundResult(ProceedingJoinPoint, TransactionalResult) - Method in class dmx.fun.spring.DmxTransactionalAspect
Runs the annotated method inside a transaction and rolls back if the returned Result is an error.
aroundTry(ProceedingJoinPoint, TransactionalTry) - Method in class dmx.fun.spring.DmxTransactionalAspect
Runs the annotated method inside a transaction and rolls back if the returned Try is a failure.
aroundValidated(ProceedingJoinPoint, TransactionalValidated) - Method in class dmx.fun.spring.DmxTransactionalAspect
Runs the annotated method inside a transaction and rolls back if the returned Validated is invalid.
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(Accumulator) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for an Accumulator.
assertThat(Either) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for an Either.
assertThat(Guard) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for a Guard.
assertThat(Option) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for an Option.
assertThat(Resource) - Static method in class dmx.fun.assertj.DmxFunAssertions
Creates an assertion for a Resource.
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.http.HttpError.NetworkFailure
Returns the value of the cause record component.
cause() - Method in record class dmx.fun.http.HttpError.Timeout
Returns the value of the cause record component.
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.
checkToEither(T) - Method in interface dmx.fun.Guard
Applies this guard to value and returns an Either<NonEmptyList<String>, T>.
checkToOption(T) - Method in interface dmx.fun.Guard
Applies this guard to value and returns an Option<T>.
checkToOptional(T) - Method in interface dmx.fun.Guard
Applies this guard to value and returns a standard Optional<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.
checkToTry(T) - Method in interface dmx.fun.Guard
Applies this guard to value and returns a Try<T>.
checkToTry(T, Function) - Method in interface dmx.fun.Guard
Applies this guard to value and returns a Try<T>, converting any accumulated errors to a domain-specific Throwable via toThrowable.
clear() - Method in class dmx.fun.NonEmptyList
 
ClientError(int, HttpResponse) - Constructor for record class dmx.fun.http.HttpError.ClientError
Creates an instance of a ClientError record class.
collector() - Static method in class dmx.fun.NonEmptyList
Returns a Collector that accumulates a Stream<T> into an Option<NonEmptyList<T>>.
collector() - Static method in class dmx.fun.NonEmptySet
Returns a Collector that accumulates a Stream<T> into an Option<NonEmptySet<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.
collector(Function, Function) - Static method in class dmx.fun.NonEmptyMap
Returns a Collector that accumulates a Stream<T> into an Option<NonEmptyMap<K, V>> using the provided key and value extractor functions.
collectPresent(Stream) - Static method in interface dmx.fun.Option
Collects all present (non-empty) values from a stream of Option instances into an unmodifiable 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(Object) - Method in class dmx.fun.NonEmptyList
 
contains(T) - Method in class dmx.fun.NonEmptySet
Returns true if this set contains element.
containsAll(Collection) - Method in class dmx.fun.NonEmptyList
 
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.
containsLeft(L) - Method in class dmx.fun.assertj.EitherAssert
Verifies that the Either is a Left containing the given value.
containsRight(R) - Method in class dmx.fun.assertj.EitherAssert
Verifies that the Either is a Right containing the given value.
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.http - module dmx.fun.http
java.net.http.HttpClient wrapper for dmx-fun.
dmx.fun.http - package dmx.fun.http
 
dmx.fun.jackson - module dmx.fun.jackson
Jackson serializers and deserializers for dmx-fun types.
dmx.fun.jackson - package dmx.fun.jackson
 
dmx.fun.jakarta.jaxb - module dmx.fun.jakarta.jaxb
Jakarta JSON Binding (JSON-B) and Jakarta XML Binding (JAXB) adapters for all dmx-fun types.
dmx.fun.jakarta.jaxb - package dmx.fun.jakarta.jaxb
 
dmx.fun.jakarta.validation - module dmx.fun.jakarta.validation
Jakarta Validation adapter for dmx-fun.
dmx.fun.jakarta.validation - package dmx.fun.jakarta.validation
 
dmx.fun.micrometer - module dmx.fun.micrometer
Micrometer adapter for dmx-fun.
dmx.fun.micrometer - package dmx.fun.micrometer
 
dmx.fun.observation - module dmx.fun.observation
Micrometer Observation adapter for dmx-fun.
dmx.fun.observation - package dmx.fun.observation
 
dmx.fun.quarkus - module dmx.fun.quarkus
Quarkus integration for dmx-fun types.
dmx.fun.quarkus - package dmx.fun.quarkus
 
dmx.fun.resilience4j - module dmx.fun.resilience4j
Resilience4J adapter for dmx-fun.
dmx.fun.resilience4j - package dmx.fun.resilience4j
 
dmx.fun.spring - module dmx.fun.spring
Spring Framework integration for dmx-fun types.
dmx.fun.spring - package dmx.fun.spring
 
dmx.fun.spring.boot - module dmx.fun.spring.boot
Spring Boot autoconfiguration for the dmx-fun library.
dmx.fun.spring.boot - package dmx.fun.spring.boot
 
dmx.fun.spring.boot.jackson - package dmx.fun.spring.boot.jackson
 
dmx.fun.spring.boot.observation - package dmx.fun.spring.boot.observation
 
dmx.fun.spring.boot.tracing - package dmx.fun.spring.boot.tracing
 
dmx.fun.spring.boot.web - package dmx.fun.spring.boot.web
 
dmx.fun.tracing - module dmx.fun.tracing
Micrometer Tracing adapter for dmx-fun.
dmx.fun.tracing - package dmx.fun.tracing
 
DmxBulkhead - Class in dmx.fun.resilience4j
dmx-fun adapter for Resilience4J Bulkhead.
DmxCircuitBreaker - Class in dmx.fun.resilience4j
dmx-fun adapter for Resilience4J CircuitBreaker.
DmxFunAssertions - Class in dmx.fun.assertj
Entry point for AssertJ custom assertions for all dmx-fun types.
DmxFunJacksonAutoConfiguration - Class in dmx.fun.spring.boot.jackson
Spring Boot autoconfiguration that registers DmxFunModule with the application's Jackson ObjectMapper.
DmxFunJacksonAutoConfiguration() - Constructor for class dmx.fun.spring.boot.jackson.DmxFunJacksonAutoConfiguration
Default constructor required for Spring Boot auto-configuration instantiation.
DmxFunJsonbAdapters - Class in dmx.fun.jakarta.jaxb
Registry of all dmx-fun Jakarta JSON-B adapters.
dmxFunModule() - Method in class dmx.fun.spring.boot.jackson.DmxFunJacksonAutoConfiguration
Registers a DmxFunModule bean so that Spring Boot's JacksonAutoConfiguration can discover and apply it to the application's ObjectMapper automatically.
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.
DmxFunObservationAutoConfiguration - Class in dmx.fun.spring.boot.observation
Spring Boot autoconfiguration for DmxObservation.
DmxFunObservationAutoConfiguration() - Constructor for class dmx.fun.spring.boot.observation.DmxFunObservationAutoConfiguration
Default constructor required for Spring Boot autoconfiguration instantiation.
DmxFunSpringAutoConfiguration - Class in dmx.fun.spring.boot
Spring Boot auto-configuration for dmx-fun Spring integration.
DmxFunSpringAutoConfiguration() - Constructor for class dmx.fun.spring.boot.DmxFunSpringAutoConfiguration
Default constructor required for Spring Boot auto-configuration instantiation.
DmxFunTracingAutoConfiguration - Class in dmx.fun.spring.boot.tracing
Spring Boot auto-configuration for DmxTracing.
DmxFunTracingAutoConfiguration() - Constructor for class dmx.fun.spring.boot.tracing.DmxFunTracingAutoConfiguration
Default constructor required for Spring Boot auto-configuration instantiation.
DmxFunWebMvcAutoConfiguration - Class in dmx.fun.spring.boot.web
Spring Boot autoconfiguration that registers dmx-fun Spring MVC HandlerMethodReturnValueHandlers in Spring MVC's RequestMappingHandlerAdapter.
DmxFunWebMvcAutoConfiguration() - Constructor for class dmx.fun.spring.boot.web.DmxFunWebMvcAutoConfiguration
Default constructor required for Spring Boot auto-configuration instantiation.
DmxFunXmlAdapters - Class in dmx.fun.jakarta.jaxb
Registry of all dmx-fun JAXB XML adapters.
DmxHttpClient - Class in dmx.fun.http
A thin wrapper around HttpClient that returns Result<T, HttpError> instead of throwing exceptions.
DmxMetered - Class in dmx.fun.micrometer
Fluent builder for instrumented dmx-fun operations.
DmxMicrometer - Class in dmx.fun.micrometer
dmx-fun adapter for Micrometer.
dmxObservation(ObservationRegistry) - Method in class dmx.fun.spring.boot.observation.DmxFunObservationAutoConfiguration
Registers a DmxObservation bean bound to the application's ObservationRegistry.
DmxObservation - Class in dmx.fun.observation
dmx-fun adapter for the Micrometer Observation API.
DmxObserved - Class in dmx.fun.observation
Fluent builder for observed dmx-fun operations.
DmxRateLimiter - Class in dmx.fun.resilience4j
dmx-fun adapter for Resilience4J RateLimiter.
DmxRetry - Class in dmx.fun.resilience4j
dmx-fun adapter for Resilience4J Retry.
DmxTraced - Class in dmx.fun.tracing
Fluent builder for traced dmx-fun operations.
dmxTracing(Tracer) - Method in class dmx.fun.spring.boot.tracing.DmxFunTracingAutoConfiguration
Registers a DmxTracing bean bound to the application's Tracer.
DmxTracing - Class in dmx.fun.tracing
dmx-fun adapter for Micrometer Tracing.
DmxTransactionalAspect - Class in dmx.fun.spring
Spring AOP aspect that backs the TransactionalResult, TransactionalTry, and TransactionalValidated annotations.
DmxTransactionalAspect(PlatformTransactionManager, BeanFactory) - Constructor for class dmx.fun.spring.DmxTransactionalAspect
Creates the aspect backed by the given transaction manager and bean factory.
DmxValidator - Class in dmx.fun.jakarta.validation
dmx-fun adapter for Jakarta Bean Validation.

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.
EitherAssert<L,R> - Class in dmx.fun.assertj
AssertJ assertions for Either.
EitherElement() - Constructor for class dmx.fun.jakarta.jaxb.EitherXmlAdapter.EitherElement
JAXB-required no-arg constructor.
EitherJsonbAdapter - Class in dmx.fun.jakarta.jaxb
Jakarta JSON-B adapter for Either.
EitherJsonbAdapter() - Constructor for class dmx.fun.jakarta.jaxb.EitherJsonbAdapter
Creates a new instance.
EitherXmlAdapter - Class in dmx.fun.jakarta.jaxb
JAXB XmlAdapter for Either.
EitherXmlAdapter() - Constructor for class dmx.fun.jakarta.jaxb.EitherXmlAdapter
Creates a new instance.
EitherXmlAdapter.EitherElement - Class in dmx.fun.jakarta.jaxb
JAXB-mapped element for 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 record class dmx.fun.http.HttpError.ClientError
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.http.HttpError.NetworkFailure
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.http.HttpError.ServerError
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.http.HttpError.Timeout
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.Results.Partition
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dmx.fun.Tries.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.Partition
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 - Variable in class dmx.fun.jakarta.jaxb.ResultXmlAdapter.ResultElement
Present when the result is Err; null otherwise.
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 - Variable in class dmx.fun.jakarta.jaxb.TryXmlAdapter.TryElement
Present when the computation failed; holds the exception message.
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.
errors() - Method in record class dmx.fun.Results.Partition
Returns the value of the errors record component.
Error type - Section in interface dmx.fun.Guard
 
eval(Try, CheckedConsumer) - Static method in class dmx.fun.Resource
Creates a Resource<T> from a pre-computed Try<T> and a release function.
exceptionClassifier(Function) - Method in class dmx.fun.micrometer.DmxMetered
Sets the function that maps each failure cause to its exception tag value.
exceptionClassifier(Function) - Method in class dmx.fun.observation.DmxObserved
Sets the function that maps each failure cause to its exception key value.
exceptionClassifier(Function) - Method in class dmx.fun.tracing.DmxTraced
Sets the function that maps each failure cause to its exception tag value.
Exception key cardinality - Section in class dmx.fun.observation.DmxObservation
 
Exception tag cardinality - Section in class dmx.fun.micrometer.DmxMicrometer
 
Exception tag cardinality - Section in class dmx.fun.tracing.DmxTracing
 
execute(Supplier) - Method in class dmx.fun.quarkus.TxResult
Executes action inside a new JTA transaction.
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.quarkus.TxTry
Executes action inside a new JTA transaction.
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.
executeNew(Supplier) - Method in class dmx.fun.quarkus.TxResult
Executes action in a brand-new JTA transaction (REQUIRES_NEW semantics), suspending any currently active transaction first and resuming it afterwards.
executeNew(Supplier) - Method in class dmx.fun.quarkus.TxTry
Executes action in a brand-new JTA transaction (REQUIRES_NEW semantics), suspending any currently active transaction first and resuming it afterwards.
executeResult(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxBulkhead
Executes the supplier through the bulkhead.
executeResult(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxCircuitBreaker
Executes the supplier through the circuit breaker.
executeResult(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxRateLimiter
Executes the supplier through the rate limiter.
executeResult(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxRetry
Executes the supplier through the retry policy.
executeResultTyped(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxBulkhead
Executes the supplier through the bulkhead, surfacing bulkhead-full rejections as a typed error.
executeResultTyped(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxCircuitBreaker
Executes the supplier through the circuit breaker, surfacing circuit-open rejections as a typed error.
executeResultTyped(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxRateLimiter
Executes the supplier through the rate limiter, surfacing rate-limit rejections as a typed error.
executeTry(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxBulkhead
Executes the supplier through the bulkhead.
executeTry(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxCircuitBreaker
Executes the supplier through the circuit breaker.
executeTry(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxRateLimiter
Executes the supplier through the rate limiter.
executeTry(CheckedSupplier) - Method in class dmx.fun.resilience4j.DmxRetry
Executes the supplier through the retry policy.

F

failsWith(Class) - Method in class dmx.fun.assertj.ResourceAssert
Verifies that the resource's acquire-use-release cycle fails with an exception of the given type (or a subtype).
failsWith(Class) - Method in class dmx.fun.assertj.TryAssert
Verifies that the Try is a Failure caused by an exception of the given type.
failsWithMessage(String) - Method in class dmx.fun.assertj.ResourceAssert
Verifies that the resource's acquire-use-release cycle fails with an exception whose message contains the given string.
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.
failures() - Method in record class dmx.fun.Tries.Partition
Returns the value of the failures record component.
failures() - Method in record class dmx.fun.Try.Partition
Returns the value of the failures record component.
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.Validated
Fail-fast sequential composition: applies mapper to the value if Validated.Valid.
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.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.
flatMapLeft(Function) - Method in interface dmx.fun.Either
Applies mapper to the left value and returns the resulting Either, leaving a Either.Right unchanged.
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.
fromEither(Either) - Static method in interface dmx.fun.Validated
Converts an Either to a Validated.
fromEither(Either) - Static method in interface dmx.fun.Result
Converts an Either into a Result.
fromEither(Either) - Static method in interface dmx.fun.Option
Converts an Either into an Option, keeping only the Either.Right value.
fromEither(Either, Function) - Static method in interface dmx.fun.Try
Converts an Either into a Try.
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, E) - Static method in interface dmx.fun.Validated
Converts a JDK Optional to a Validated.
fromOptional(Optional) - Static method in class dmx.fun.NonEmptyMap
Attempts to construct a NonEmptyMap from a JDK Optional wrapping a plain Map.
fromOptional(Optional) - Static method in class dmx.fun.NonEmptyList
Attempts to construct a singleton NonEmptyList from a JDK Optional.
fromOptional(Optional) - Static method in class dmx.fun.NonEmptySet
Attempts to construct a singleton NonEmptySet from a JDK Optional.
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.Try
Converts a Result into a Try instance.
fromResult(Result) - Static method in interface dmx.fun.Validated
Converts a Result to a Validated.
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.
fromTryOptional(Try) - Static method in interface dmx.fun.Option
Converts a Try<Optional<V>> into an Option<V>, flattening both layers in a single step.

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.
getFirst() - Method in class dmx.fun.NonEmptyList
Returns the first element of this list.
getLast() - Method in class dmx.fun.NonEmptyList
Returns the last element of this list.
getLeft() - Method in interface dmx.fun.Either
Returns the left value.
getLeftOrElse(L) - Method in interface dmx.fun.Either
Returns the left value if present, or fallback if this is a Either.Right.
getLeftOrElseGet(Supplier) - Method in interface dmx.fun.Either
Returns the left value if present, or the value supplied by supplier if this is a Either.Right.
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.
getRightOrElse(R) - Method in interface dmx.fun.Either
Returns the right value if present, or fallback if this is a Either.Left.
getRightOrElseGet(Supplier) - Method in interface dmx.fun.Either
Returns the right value if present, or the value supplied by supplier if this is a Either.Left.
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) - Static method in class dmx.fun.Results
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.
groupingBy(Function, Function) - Static method in class dmx.fun.Results
Returns a Collector that groups stream elements by a key derived from each element, then applies a finishing 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.
GuardAssert<T> - Class in dmx.fun.assertj
AssertJ assertions for Guard.

H

handleReturnValue(Object, MethodParameter, ModelAndViewContainer, NativeWebRequest) - Method in class dmx.fun.spring.boot.web.OptionHandlerMethodReturnValueHandler
 
handleReturnValue(Object, MethodParameter, ModelAndViewContainer, NativeWebRequest) - Method in class dmx.fun.spring.boot.web.ResultHandlerMethodReturnValueHandler
 
hasAccumulation(E) - Method in class dmx.fun.assertj.AccumulatorAssert
Verifies that the accumulator's side-channel equals the given expected accumulation.
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 record class dmx.fun.http.HttpError.ClientError
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.http.HttpError.NetworkFailure
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.http.HttpError.ServerError
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.http.HttpError.Timeout
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.Results.Partition
Returns a hash code value for this object.
hashCode() - Method in record class dmx.fun.Tries.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.Partition
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.
hasValue(A) - Method in class dmx.fun.assertj.AccumulatorAssert
Verifies that the accumulator's primary value equals the given expected 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.
HttpError - Interface in dmx.fun.http
Typed failure hierarchy for DmxHttpClient.
HttpError.ClientError - Record Class in dmx.fun.http
4xx — bad request, unauthorized, not found, etc.
HttpError.NetworkFailure - Record Class in dmx.fun.http
Any failure that prevented a valid response from being produced.
HttpError.ServerError - Record Class in dmx.fun.http
5xx — internal server error, bad gateway, service unavailable, etc.
HttpError.Timeout - Record Class in dmx.fun.http
HttpTimeoutException thrown by the underlying HttpClient.

I

intercept(InvocationContext) - Method in class dmx.fun.quarkus.TransactionalDmxInterceptor
Wraps the intercepted method invocation in a JTA transaction, rolling back (or marking rollback-only when joining an existing transaction) when the returned Result is error or Try is failure.
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 class dmx.fun.NonEmptyList
Always false — a NonEmptyList always has at least one element.
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 class dmx.fun.assertj.EitherAssert
Verifies that the Either is a Left.
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.
isolation() - Element in annotation interface dmx.fun.spring.TransactionalResult
Transaction isolation level.
isolation() - Element in annotation interface dmx.fun.spring.TransactionalTry
Transaction isolation level.
isolation() - Element in annotation interface dmx.fun.spring.TransactionalValidated
Transaction isolation level.
isRight() - Method in class dmx.fun.assertj.EitherAssert
Verifies that the Either is a Right.
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 - Variable in class dmx.fun.jakarta.jaxb.EitherXmlAdapter.EitherElement
Present when the value is Left; null otherwise.
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.
liftEither(Either, Function, Function) - Static method in record class dmx.fun.Accumulator
Lifts an Either value into an Accumulator, recording a log entry via rightLog on the right track or leftLog on the left track.
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.
liftResult(Result, Function, Function) - Static method in record class dmx.fun.Accumulator
Lifts a Result value into an Accumulator, recording a log entry via okLog on success or errLog on failure.
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.
Limitation: null-body handlers are not supported - Section in class dmx.fun.http.DmxHttpClient
 

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(BiFunction) - Method in record class dmx.fun.Tuple2
Collapses this pair into a single value by applying f to both elements.
map(Function) - Method in record class dmx.fun.Accumulator
Transforms the value, leaving the accumulation unchanged.
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.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.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.Tuple2
Returns a new tuple with f applied to the first element; the second element is 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.Tuple2
Returns a new tuple with f applied to the second element; the first element is 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.
mapValuesWithKey(BiFunction) - Method in class dmx.fun.NonEmptyMap
Applies mapper to every key-value pair and returns a new NonEmptyMap with the same keys and mapped values.
marshal(Either) - Method in class dmx.fun.jakarta.jaxb.EitherXmlAdapter
 
marshal(Option) - Method in class dmx.fun.jakarta.jaxb.OptionXmlAdapter
 
marshal(Result) - Method in class dmx.fun.jakarta.jaxb.ResultXmlAdapter
 
marshal(Try) - Method in class dmx.fun.jakarta.jaxb.TryXmlAdapter
 
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.Either
Executes one of the provided consumers depending on whether this is a Either.Left or a Either.Right, then discards the result.
match(Consumer, Consumer) - Method in interface dmx.fun.Try
Applies onSuccess to the value when this is a Success, or onFailure to the cause when this is a Failure.
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.
Metrics recorded per call - Section in class dmx.fun.micrometer.DmxMicrometer
 

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.
negate(Function) - Method in interface dmx.fun.Guard
Returns a guard that is the logical negation of this guard, using a dynamic error message.
NetworkFailure(Throwable) - Constructor for record class dmx.fun.http.HttpError.NetworkFailure
Creates an instance of a NetworkFailure record class.
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.
NonEmptyListJsonbAdapter - Class in dmx.fun.jakarta.jaxb
Jakarta JSON-B adapter for NonEmptyList.
NonEmptyListJsonbAdapter() - Constructor for class dmx.fun.jakarta.jaxb.NonEmptyListJsonbAdapter
Creates a new instance.
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.
nonNull() - Static method in interface dmx.fun.Guard
Creates and returns a Guard instance that ensures a value is non-null.

O

observeResult(CheckedSupplier) - Method in class dmx.fun.observation.DmxObserved
Executes supplier inside a new observation.
observeResult(String, CheckedSupplier) - Method in class dmx.fun.observation.DmxObservation
Executes supplier inside a new Observation named name.
observeTry(CheckedSupplier) - Method in class dmx.fun.observation.DmxObserved
Executes supplier inside a new observation.
observeTry(String, CheckedSupplier) - Method in class dmx.fun.observation.DmxObservation
Executes supplier inside a new Observation named name.
of(A, B) - Static method in record class dmx.fun.Tuple2
Creates a new Tuple2 with the given elements.
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(Bulkhead) - Static method in class dmx.fun.resilience4j.DmxBulkhead
Wraps an existing Bulkhead instance.
of(CircuitBreaker) - Static method in class dmx.fun.resilience4j.DmxCircuitBreaker
Wraps an existing CircuitBreaker instance.
of(RateLimiter) - Static method in class dmx.fun.resilience4j.DmxRateLimiter
Wraps an existing RateLimiter instance.
of(Retry) - Static method in class dmx.fun.resilience4j.DmxRetry
Wraps an existing Retry instance.
of(MeterRegistry) - Static method in class dmx.fun.micrometer.DmxMicrometer
Creates an instance bound to the given MeterRegistry.
of(MeterRegistry, Function) - Static method in class dmx.fun.micrometer.DmxMicrometer
Creates an instance bound to the given MeterRegistry and exception classifier.
of(ObservationRegistry) - Static method in class dmx.fun.observation.DmxObservation
Creates an instance bound to the given ObservationRegistry.
of(ObservationRegistry, Function) - Static method in class dmx.fun.observation.DmxObservation
Creates an instance bound to the given ObservationRegistry and exception classifier.
of(Tracer) - Static method in class dmx.fun.tracing.DmxTracing
Creates an instance bound to the given Tracer.
of(Tracer, Function) - Static method in class dmx.fun.tracing.DmxTracing
Creates an instance bound to the given Tracer and exception classifier.
of(String) - Static method in class dmx.fun.micrometer.DmxMetered
Creates a builder for the given metric name.
of(String) - Static method in class dmx.fun.observation.DmxObserved
Creates a builder for the given observation name.
of(String) - Static method in class dmx.fun.tracing.DmxTraced
Creates a builder for the given span name.
of(String, BulkheadConfig) - Static method in class dmx.fun.resilience4j.DmxBulkhead
Creates a new Bulkhead from the given name and config, then wraps it.
of(String, CircuitBreakerConfig) - Static method in class dmx.fun.resilience4j.DmxCircuitBreaker
Creates a new CircuitBreaker from the given name and config, then wraps it.
of(String, RateLimiterConfig) - Static method in class dmx.fun.resilience4j.DmxRateLimiter
Creates a new RateLimiter from the given name and config, then wraps it.
of(String, RetryConfig) - Static method in class dmx.fun.resilience4j.DmxRetry
Creates a new Retry from the given name and config, then wraps it.
of(HttpClient) - Static method in class dmx.fun.http.DmxHttpClient
Creates a new DmxHttpClient wrapping the given HttpClient.
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.
ofNullable(V, Supplier) - Static method in interface dmx.fun.Try
Creates a Try from a potentially null value.
ok - Variable in class dmx.fun.jakarta.jaxb.ResultXmlAdapter.ResultElement
Present when the result is Ok; null otherwise.
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.
oks() - Method in record class dmx.fun.Results.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.
OptionElement() - Constructor for class dmx.fun.jakarta.jaxb.OptionXmlAdapter.OptionElement
JAXB-required no-arg constructor.
OptionHandlerMethodReturnValueHandler - Class in dmx.fun.spring.boot.web
Spring MVC HandlerMethodReturnValueHandler that converts Option return values into HTTP responses automatically: Option.some(Object) → HTTP 200 with the unwrapped value serialized by the delegate HandlerMethodReturnValueHandler (typically RequestResponseBodyMethodProcessor). Option.none() → HTTP 404 with an empty body.
OptionHandlerMethodReturnValueHandler(HandlerMethodReturnValueHandler) - Constructor for class dmx.fun.spring.boot.web.OptionHandlerMethodReturnValueHandler
Creates a handler that unwraps Option return values and delegates serialization of the unwrapped value to the given handler.
OptionJsonbAdapter - Class in dmx.fun.jakarta.jaxb
Jakarta JSON-B adapter for Option.
OptionJsonbAdapter() - Constructor for class dmx.fun.jakarta.jaxb.OptionJsonbAdapter
Creates a new instance.
Options - Class in dmx.fun
Collector facade for Stream<Option<T>>.
OptionXmlAdapter - Class in dmx.fun.jakarta.jaxb
JAXB XmlAdapter for Option.
OptionXmlAdapter() - Constructor for class dmx.fun.jakarta.jaxb.OptionXmlAdapter
Creates a new instance.
OptionXmlAdapter.OptionElement - Class in dmx.fun.jakarta.jaxb
JAXB-mapped element 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.
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.
Partition(List, List) - Constructor for record class dmx.fun.Results.Partition
Validates non-null inputs and defensively copies both lists.
Partition(List, List) - Constructor for record class dmx.fun.Tries.Partition
Validates non-null inputs and defensively copies both lists.
Partition(List, List) - Constructor for record class dmx.fun.Try.Partition
Defensively copies both lists and null-checks them.
partitioning() - Static method in class dmx.fun.Results
Returns a Collector that partitions a Stream<Result<V, E>> into ok-values and errors.
partitioning() - Static method in class dmx.fun.Tries
Returns a Collector that partitions a Stream<Try<V>> into successes and failures.
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.
partitioningBy() - Static method in interface dmx.fun.Try
Returns a Collector that partitions a Stream<Try<V>> into two typed lists: Try.Partition.successes() for values from Success elements, and Try.Partition.failures() for causes from Failure elements.
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.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.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.
presentToList() - Static method in class dmx.fun.Options
Returns a Collector that collects all present values from a Stream<Option<V>> into an unordered List, discarding empty options.
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.
propagation() - Element in annotation interface dmx.fun.spring.TransactionalResult
Transaction propagation behaviour.
propagation() - Element in annotation interface dmx.fun.spring.TransactionalTry
Transaction propagation behavior.
propagation() - Element in annotation interface dmx.fun.spring.TransactionalValidated
Transaction propagation behavior.
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 annotation interface dmx.fun.quarkus.TransactionalResult
 
Quick start - Section in annotation interface dmx.fun.quarkus.TransactionalTry
 
Quick start - Section in annotation interface dmx.fun.spring.TransactionalResult
 
Quick start - Section in annotation interface dmx.fun.spring.TransactionalTry
 
Quick start - Section in annotation interface dmx.fun.spring.TransactionalValidated
 
Quick start - Section in class dmx.fun.quarkus.TxResult
 
Quick start - Section in class dmx.fun.quarkus.TxTry
 
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

readOnly() - Element in annotation interface dmx.fun.spring.TransactionalResult
Whether the transaction is read-only.
readOnly() - Element in annotation interface dmx.fun.spring.TransactionalTry
Whether the transaction is read-only.
readOnly() - Element in annotation interface dmx.fun.spring.TransactionalValidated
Whether the transaction is read-only.
recordResult(CheckedSupplier) - Method in class dmx.fun.micrometer.DmxMetered
Executes the supplier and records metrics.
recordResult(String, Tags, CheckedSupplier) - Method in class dmx.fun.micrometer.DmxMicrometer
Executes the supplier and records metrics under name.
recordTry(CheckedSupplier) - Method in class dmx.fun.micrometer.DmxMetered
Executes the supplier and records metrics.
recordTry(String, Tags, CheckedSupplier) - Method in class dmx.fun.micrometer.DmxMicrometer
Executes the supplier and records metrics under name.
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.
registry(MeterRegistry) - Method in class dmx.fun.micrometer.DmxMetered
Sets the MeterRegistry to register metrics with.
registry(ObservationRegistry) - Method in class dmx.fun.observation.DmxObserved
Sets the ObservationRegistry to create observations with.
rejects(T) - Method in class dmx.fun.assertj.GuardAssert
Verifies that the guard rejects (fails validation of) the given value.
rejectsWithMessage(T, String) - Method in class dmx.fun.assertj.GuardAssert
Verifies that the guard rejects the given value and that at least one rejection message contains the expected string.
rejectsWithMessages(T, String...) - Method in class dmx.fun.assertj.GuardAssert
Verifies that the guard rejects the given value and that for each expected message, at least one rejection message contains it.
remove(Object) - Method in class dmx.fun.NonEmptyList
 
removeAll(Collection) - Method in class dmx.fun.NonEmptyList
 
removeFirst() - Method in class dmx.fun.NonEmptyList
Unsupported — NonEmptyList is immutable.
removeIf(Predicate) - Method in class dmx.fun.NonEmptyList
 
removeLast() - Method in class dmx.fun.NonEmptyList
Unsupported — NonEmptyList is immutable.
Resource<T> - Class in dmx.fun
A functional managed resource: a value that must be acquired before use and released afterward.
ResourceAssert<T> - Class in dmx.fun.assertj
AssertJ assertions for Resource.
response() - Method in record class dmx.fun.http.HttpError.ClientError
Returns the value of the response record component.
response() - Method in record class dmx.fun.http.HttpError.ServerError
Returns the value of the response record component.
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.
ResultElement() - Constructor for class dmx.fun.jakarta.jaxb.ResultXmlAdapter.ResultElement
JAXB-required no-arg constructor.
ResultHandlerMethodReturnValueHandler - Class in dmx.fun.spring.boot.web
Spring MVC HandlerMethodReturnValueHandler for Result, Validated, and Try return values.
ResultHandlerMethodReturnValueHandler(HandlerMethodReturnValueHandler) - Constructor for class dmx.fun.spring.boot.web.ResultHandlerMethodReturnValueHandler
Creates a handler that unwraps Result, Validated, and Try return values and delegates serialization of the unwrapped value (or error) to the given handler.
ResultJsonbAdapter - Class in dmx.fun.jakarta.jaxb
Jakarta JSON-B adapter for Result.
ResultJsonbAdapter() - Constructor for class dmx.fun.jakarta.jaxb.ResultJsonbAdapter
Creates a new instance.
Results - Class in dmx.fun
Collector facade for Stream<Result<V, E>>.
Results.Partition<V,E> - Record Class in dmx.fun
Transparent alias for Result.Partition so callers can use Results.Partition without importing Result directly.
ResultXmlAdapter - Class in dmx.fun.jakarta.jaxb
JAXB XmlAdapter for Result.
ResultXmlAdapter() - Constructor for class dmx.fun.jakarta.jaxb.ResultXmlAdapter
Creates a new instance.
ResultXmlAdapter.ResultElement - Class in dmx.fun.jakarta.jaxb
JAXB-mapped element for Result.
retainAll(Collection) - Method in class dmx.fun.NonEmptyList
 
reversed() - Method in class dmx.fun.NonEmptyList
Returns a new NonEmptyList with all elements in reverse order.
right - Variable in class dmx.fun.jakarta.jaxb.EitherXmlAdapter.EitherElement
Present when the value is Right; null otherwise.
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

send(HttpRequest, HttpResponse.BodyHandler) - Method in class dmx.fun.http.DmxHttpClient
Sends an HTTP request synchronously and returns the result.
send(HttpRequest, HttpResponse.BodyHandler, CheckedFunction) - Method in class dmx.fun.http.DmxHttpClient
Sends an HTTP request synchronously, then applies deserializer to the body.
sendAsync(HttpRequest, HttpResponse.BodyHandler) - Method in class dmx.fun.http.DmxHttpClient
Sends an HTTP request asynchronously and returns a CompletableFuture that completes with a Result.
sequence() - Static method in class dmx.fun.Options
Returns a Collector that reduces a Stream<Option<V>> to a single Option<List<V>>: Option.some(list) if every element is present, or Option.none() if any element is empty.
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>>.
sequenceEither(NonEmptyList) - Static method in class dmx.fun.NonEmptyList
Sequences a NonEmptyList of Eithers into an Either of a NonEmptyList.
sequenceEither(NonEmptyMap) - Static method in class dmx.fun.NonEmptyMap
Sequences a NonEmptyMap<K, Either<E, V>> into an Either<E, NonEmptyMap<K, V>>.
sequenceEither(NonEmptySet) - Static method in class dmx.fun.NonEmptySet
Sequences a NonEmptySet<Either<E, T>> into an Either<E, NonEmptySet<T>>.
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).
sequenceOption(NonEmptyMap) - Static method in class dmx.fun.NonEmptyMap
Sequences a NonEmptyMap<K, Option<V>> into an Option<NonEmptyMap<K, V>>.
sequenceOption(NonEmptySet) - Static method in class dmx.fun.NonEmptySet
Sequences a NonEmptySet<Option<T>> into an Option<NonEmptySet<T>>.
sequenceResult(NonEmptyList) - Static method in class dmx.fun.NonEmptyList
Sequences a NonEmptyList of Results into a Result of a NonEmptyList.
sequenceResult(NonEmptyMap) - Static method in class dmx.fun.NonEmptyMap
Sequences a NonEmptyMap<K, Result<V, E>> into a Result<NonEmptyMap<K, V>, E>.
sequenceResult(NonEmptySet) - Static method in class dmx.fun.NonEmptySet
Sequences a NonEmptySet<Result<T, E>> into a Result<NonEmptySet<T>, E>.
sequenceTry(NonEmptyList) - Static method in class dmx.fun.NonEmptyList
Sequences a NonEmptyList of Trys into a Try of a NonEmptyList.
sequenceTry(NonEmptyMap) - Static method in class dmx.fun.NonEmptyMap
Sequences a NonEmptyMap<K, Try<V>> into a Try<NonEmptyMap<K, V>>.
sequenceTry(NonEmptySet) - Static method in class dmx.fun.NonEmptySet
Sequences a NonEmptySet<Try<T>> into a Try<NonEmptySet<T>>.
ServerError(int, HttpResponse) - Constructor for record class dmx.fun.http.HttpError.ServerError
Creates an instance of a ServerError record class.
Signals recorded per call - Section in class dmx.fun.observation.DmxObservation
 
Signals recorded per call - Section in class dmx.fun.tracing.DmxTracing
 
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.
statusCode() - Method in record class dmx.fun.http.HttpError.ClientError
Returns the value of the statusCode record component.
statusCode() - Method in record class dmx.fun.http.HttpError.ServerError
Returns the value of the statusCode record component.
stream() - Method in record class dmx.fun.Accumulator
Returns a single-element Stream of the value when Accumulator.hasValue() is true, or an empty stream for Accumulator.tell(Object) results.
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.Either
Returns this Either as a single-element or empty Stream.
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.
streamLeft() - Method in interface dmx.fun.Either
Returns this Either as a single-element or empty Stream of the left value.
succeedsWith(T) - Method in class dmx.fun.assertj.ResourceAssert
Verifies that the resource's acquire-use-release cycle succeeds and the acquired value equals expected.
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.
successes() - Method in record class dmx.fun.Tries.Partition
Returns the value of the successes record component.
successes() - Method in record class dmx.fun.Try.Partition
Returns the value of the successes record component.
supportsReturnType(MethodParameter) - Method in class dmx.fun.spring.boot.web.OptionHandlerMethodReturnValueHandler
 
supportsReturnType(MethodParameter) - Method in class dmx.fun.spring.boot.web.ResultHandlerMethodReturnValueHandler
 
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

tags(Tags) - Method in class dmx.fun.micrometer.DmxMetered
Sets the tags to attach to all metrics for this operation.
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.
timeout() - Element in annotation interface dmx.fun.spring.TransactionalResult
Transaction timeout in seconds.
timeout() - Element in annotation interface dmx.fun.spring.TransactionalTry
Transaction timeout in seconds.
timeout() - Element in annotation interface dmx.fun.spring.TransactionalValidated
Transaction timeout in seconds.
Timeout(HttpTimeoutException) - Constructor for record class dmx.fun.http.HttpError.Timeout
Creates an instance of a Timeout record class.
toArray() - Method in class dmx.fun.NonEmptyList
 
toArray(E[]) - Method in class dmx.fun.NonEmptyList
 
toEither() - Method in record class dmx.fun.Accumulator
Converts this accumulator to an Either: Either.right(Object) when Accumulator.hasValue() is true, or Either.left(Object) carrying the accumulated side-channel when this accumulator was created by Accumulator.tell(Object).
toEither() - Method in class dmx.fun.Lazy
Evaluates this Lazy inside an Either, capturing any exception thrown by the supplier as Left(Throwable).
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(Function) - Method in class dmx.fun.Lazy
Evaluates this Lazy inside an Either, converting any exception thrown by the supplier into a typed left value using errorMapper.
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.Option
Converts this Option into an already-completed 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>.
toList() - Static method in class dmx.fun.Results
Returns a Collector that accumulates a Stream<Result<V, E>> into a single Result<List<V>, E>, failing on the first Err encountered.
toList() - Static method in class dmx.fun.Tries
Returns a Collector that accumulates a Stream<Try<V>> into a single Try<List<V>>, failing on the first Failure encountered.
toList() - Static method in interface dmx.fun.Try
Returns a Collector that accumulates a Stream<Try<V>> into a single Try<List<V>>, failing on the first Failure encountered.
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.
toNonEmptyList() - Static method in class dmx.fun.Options
Returns a Collector that accumulates a Stream<T> into an Option<NonEmptyList<T>>: Option.some(nel) if the stream is non-empty, or Option.none() if the stream is empty.
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 record class dmx.fun.Accumulator
Converts this accumulator to a JDK Optional.
toOptional() - Method in interface dmx.fun.Either
Converts this Either to a standard Optional<R>.
toOptional() - Method in class dmx.fun.Lazy
Evaluates this Lazy and returns the value wrapped in a Optional.
toOptional() - Method in interface dmx.fun.Option
Converts the current instance of a value or none container into an Optional.
toOptional() - Method in interface dmx.fun.Result
Converts this Result to a standard Optional<V>.
toOptional() - Method in interface dmx.fun.Try
Converts this Try to a standard Optional<V>.
toOptional() - Method in interface dmx.fun.Validated
Converts this Validated to a JDK 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.
toResultPartition() - Method in record class dmx.fun.Results.Partition
Converts this partition to the underlying Result.Partition.
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).
toStream() - Method in class dmx.fun.NonEmptyMap
Returns a sequential Stream of all entries in insertion order.
toStream() - Method in class dmx.fun.NonEmptySet
Returns a sequential Stream of all elements in insertion order.
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 record class dmx.fun.http.HttpError.ClientError
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.http.HttpError.NetworkFailure
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.http.HttpError.ServerError
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.http.HttpError.Timeout
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.Results.Partition
Returns a string representation of this record class.
toString() - Method in record class dmx.fun.Tries.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.Partition
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.Either
Converts this Either to a Try.
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.
toTryPartition() - Method in record class dmx.fun.Tries.Partition
Converts this partition to the underlying Try.Partition.
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.
tracer(Tracer) - Method in class dmx.fun.tracing.DmxTraced
Sets the Tracer to open spans with.
traceResult(CheckedSupplier) - Method in class dmx.fun.tracing.DmxTraced
Executes supplier inside a new span.
traceResult(String, CheckedSupplier) - Method in class dmx.fun.tracing.DmxTracing
Executes supplier inside a new span named name.
traceTry(CheckedSupplier) - Method in class dmx.fun.tracing.DmxTraced
Executes supplier inside a new span.
traceTry(String, CheckedSupplier) - Method in class dmx.fun.tracing.DmxTracing
Executes supplier inside a new span named name.
TransactionalDmxInterceptor - Class in dmx.fun.quarkus
CDI interceptor that backs TransactionalResult and TransactionalTry.
TransactionalResult - Annotation Interface in dmx.fun.quarkus
Declarative transaction annotation for methods that return Result.
TransactionalResult - Annotation Interface in dmx.fun.spring
Declarative transaction annotation for methods that return Result.
TransactionalTry - Annotation Interface in dmx.fun.quarkus
Declarative transaction annotation for methods that return Try.
TransactionalTry - Annotation Interface in dmx.fun.spring
Declarative transaction annotation for methods that return Try.
TransactionalValidated - Annotation Interface in dmx.fun.spring
Declarative transaction annotation for methods that return Validated.
transactionManager() - Element in annotation interface dmx.fun.spring.TransactionalResult
Bean name of a specific PlatformTransactionManager to use.
transactionManager() - Element in annotation interface dmx.fun.spring.TransactionalTry
Bean name of a specific PlatformTransactionManager to use.
transactionManager() - Element in annotation interface dmx.fun.spring.TransactionalValidated
Bean name of a specific PlatformTransactionManager to use.
Transaction semantics - Section in annotation interface dmx.fun.quarkus.TransactionalResult
 
Transaction semantics - Section in annotation interface dmx.fun.quarkus.TransactionalTry
 
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).
Tries - Class in dmx.fun
Collector facade for Stream<Try<V>>.
Tries.Partition<V> - Record Class in dmx.fun
Transparent alias for Try.Partition so callers can use Tries.Partition without importing Try directly.
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.Partition<V> - Record Class in dmx.fun
A typed container holding the two partitions produced by Try.partitioningBy().
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.
TryElement() - Constructor for class dmx.fun.jakarta.jaxb.TryXmlAdapter.TryElement
JAXB-required no-arg constructor.
TryJsonbAdapter - Class in dmx.fun.jakarta.jaxb
Jakarta JSON-B adapter for Try.
TryJsonbAdapter() - Constructor for class dmx.fun.jakarta.jaxb.TryJsonbAdapter
Creates a new instance.
TryXmlAdapter - Class in dmx.fun.jakarta.jaxb
JAXB XmlAdapter for Try.
TryXmlAdapter() - Constructor for class dmx.fun.jakarta.jaxb.TryXmlAdapter
Creates a new instance.
TryXmlAdapter.TryElement - Class in dmx.fun.jakarta.jaxb
JAXB-mapped element 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.
Tuple2JsonbAdapter - Class in dmx.fun.jakarta.jaxb
Jakarta JSON-B adapter for Tuple2.
Tuple2JsonbAdapter() - Constructor for class dmx.fun.jakarta.jaxb.Tuple2JsonbAdapter
Creates a new instance.
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.
Tuple3JsonbAdapter - Class in dmx.fun.jakarta.jaxb
Jakarta JSON-B adapter for Tuple3.
Tuple3JsonbAdapter() - Constructor for class dmx.fun.jakarta.jaxb.Tuple3JsonbAdapter
Creates a new instance.
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.
Tuple4JsonbAdapter - Class in dmx.fun.jakarta.jaxb
Jakarta JSON-B adapter for Tuple4.
Tuple4JsonbAdapter() - Constructor for class dmx.fun.jakarta.jaxb.Tuple4JsonbAdapter
Creates a new instance.
txResult(PlatformTransactionManager) - Method in class dmx.fun.spring.boot.DmxFunSpringAutoConfiguration
Registers a TxResult backed by the primary transaction manager.
TxResult - Class in dmx.fun.quarkus
CDI bean that executes a Result-returning action inside a JTA-managed transaction, automatically rolling back when the result represents a failure.
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() - Constructor for class dmx.fun.quarkus.TxResult
 
TxResult(PlatformTransactionManager) - Constructor for class dmx.fun.spring.TxResult
Creates a TxResult backed by the given transaction manager.
txTry(PlatformTransactionManager) - Method in class dmx.fun.spring.boot.DmxFunSpringAutoConfiguration
Registers a TxTry backed by the primary transaction manager.
TxTry - Class in dmx.fun.quarkus
CDI bean that executes a Try-returning action inside a JTA-managed transaction, automatically rolling back when the result represents a failure.
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() - Constructor for class dmx.fun.quarkus.TxTry
 
TxTry(PlatformTransactionManager) - Constructor for class dmx.fun.spring.TxTry
Creates a TxTry backed by the given transaction manager.
txValidated(PlatformTransactionManager) - Method in class dmx.fun.spring.boot.DmxFunSpringAutoConfiguration
Registers a TxValidated backed by the primary 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.
unmarshal(EitherXmlAdapter.EitherElement) - Method in class dmx.fun.jakarta.jaxb.EitherXmlAdapter
 
unmarshal(OptionXmlAdapter.OptionElement) - Method in class dmx.fun.jakarta.jaxb.OptionXmlAdapter
 
unmarshal(ResultXmlAdapter.ResultElement) - Method in class dmx.fun.jakarta.jaxb.ResultXmlAdapter
 
unmarshal(TryXmlAdapter.TryElement) - Method in class dmx.fun.jakarta.jaxb.TryXmlAdapter
 
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.
useAsEither(Function, Function) - Method in class dmx.fun.Resource
Acquires the resource, applies body to produce an Either, releases the resource, and returns an Either<E, R>.
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.
validate(Validator, T, Class...) - Static method in class dmx.fun.jakarta.validation.DmxValidator
Validates object and returns violation messages as a NonEmptyList<String>.
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.
ValidatedJsonbAdapter - Class in dmx.fun.jakarta.jaxb
Jakarta JSON-B adapter for Validated.
ValidatedJsonbAdapter() - Constructor for class dmx.fun.jakarta.jaxb.ValidatedJsonbAdapter
Creates a new instance.
validateRaw(Validator, T, Class...) - Static method in class dmx.fun.jakarta.validation.DmxValidator
Validates object and returns the raw ConstraintViolation set as a NonEmptyList.
value - Variable in class dmx.fun.jakarta.jaxb.OptionXmlAdapter.OptionElement
The wrapped value; null represents Option.none().
value - Variable in class dmx.fun.jakarta.jaxb.TryXmlAdapter.TryElement
Present when the computation succeeded; null otherwise.
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() - Element in annotation interface dmx.fun.quarkus.TransactionalResult
The transaction propagation type.
value() - Element in annotation interface dmx.fun.quarkus.TransactionalTry
The transaction propagation type.
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

withMessage(String) - Method in interface dmx.fun.Guard
Returns a guard that replaces any error messages produced by this guard with message.
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