Index
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
accumulatedrecord 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
Aand a side-channel accumulationE. - Accumulator(A, E) - Constructor for record class dmx.fun.Accumulator
-
Compact canonical constructor — validates that
accumulatedis 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 —
NonEmptyListis immutable. - addLast(T) - Method in class dmx.fun.NonEmptyList
-
Unsupported —
NonEmptyListis 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
otherto pass. - andThen(Guard) - Method in interface dmx.fun.Guard
-
Returns a composed guard that evaluates
nextonly when this guard passes. - append(T) - Method in class dmx.fun.NonEmptyList
-
Returns a new
NonEmptyListwithelementappended 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
Resultis 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
Tryis 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
Validatedis invalid. - asPredicate() - Method in interface dmx.fun.Guard
- 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
causerecord component. - cause() - Method in record class dmx.fun.http.HttpError.Timeout
-
Returns the value of the
causerecord component. - cause() - Method in record class dmx.fun.Try.Failure
-
Returns the value of the
causerecord 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
valueand returns anEither<NonEmptyList<String>, T>. - checkToOption(T) - Method in interface dmx.fun.Guard
-
Applies this guard to
valueand returns anOption<T>. - checkToOptional(T) - Method in interface dmx.fun.Guard
-
Applies this guard to
valueand returns a standardOptional<T>. - checkToResult(T) - Method in interface dmx.fun.Guard
-
Applies this guard to
valueand returns aResult<T, NonEmptyList<String>>. - checkToResult(T, Function) - Method in interface dmx.fun.Guard
-
Applies this guard to
valueand returns aResult<T, E>, mapping the accumulated error list to a domain-specific error type viatoError. - checkToTry(T) - Method in interface dmx.fun.Guard
-
Applies this guard to
valueand returns aTry<T>. - checkToTry(T, Function) - Method in interface dmx.fun.Guard
-
Applies this guard to
valueand returns aTry<T>, converting any accumulated errors to a domain-specificThrowableviatoThrowable. - clear() - Method in class dmx.fun.NonEmptyList
- ClientError(int, HttpResponse) - Constructor for record class dmx.fun.http.HttpError.ClientError
-
Creates an instance of a
ClientErrorrecord class. - collector() - Static method in class dmx.fun.NonEmptyList
- collector() - Static method in class dmx.fun.NonEmptySet
- collector(BinaryOperator) - Static method in interface dmx.fun.Validated
-
Returns a
Collectorthat accumulates a stream ofValidated<E, A>into a singleValidated<E, List<A>>, collecting all valid values and merging all errors left-to-right usingerrMerge. - collector(Function, Function) - Static method in class dmx.fun.NonEmptyMap
-
Returns a
Collectorthat accumulates aStream<T>into anOption<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
Optioninstances into an unmodifiable list. - combine(Accumulator, BinaryOperator, BiFunction) - Method in record class dmx.fun.Accumulator
-
Combines this accumulator with
otherby merging their accumulations and applyingfto both values to produce a new value. - combine(Validated, BinaryOperator, BiFunction) - Method in interface dmx.fun.Validated
-
Combines this
Validatedwithother, accumulating errors and merging values. - combine3(Validated, Validated, Validated, BinaryOperator, TriFunction) - Static method in interface dmx.fun.Validated
-
Combines three independent
Validatedvalues, accumulating all errors. - combine4(Validated, Validated, Validated, Validated, BinaryOperator, QuadFunction) - Static method in interface dmx.fun.Validated
-
Combines four independent
Validatedvalues, 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
NonEmptyListthat is the concatenation of this list andother. - contains(Object) - Method in class dmx.fun.NonEmptyList
- contains(T) - Method in class dmx.fun.NonEmptySet
-
Returns
trueif this set containselement. - containsAll(Collection) - Method in class dmx.fun.NonEmptyList
- containsError(E) - Method in class dmx.fun.assertj.ResultAssert
-
Verifies that the
ResultisErrand contains the given error. - containsKey(K) - Method in class dmx.fun.NonEmptyMap
-
Returns
trueif this map contains an entry forkey. - containsLeft(L) - Method in class dmx.fun.assertj.EitherAssert
-
Verifies that the
Eitheris aLeftcontaining the given value. - containsRight(R) - Method in class dmx.fun.assertj.EitherAssert
-
Verifies that the
Eitheris aRightcontaining the given value. - containsValue(A) - Method in class dmx.fun.assertj.ValidatedAssert
-
Verifies that the
ValidatedisValidand contains the given value. - containsValue(V) - Method in class dmx.fun.assertj.OptionAssert
-
Verifies that the
OptionisSomeand contains the given value. - containsValue(V) - Method in class dmx.fun.assertj.ResultAssert
-
Verifies that the
ResultisOkand contains the given value. - containsValue(V) - Method in class dmx.fun.assertj.TryAssert
-
Verifies that the
Tryis aSuccessand contains the given value. - contramap(Function) - Method in interface dmx.fun.Guard
-
Returns a
Guard<U>that appliesmapperto 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.HttpClientwrapper 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
DmxFunModulewith the application's JacksonObjectMapper. - 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
DmxFunModulebean so that Spring Boot'sJacksonAutoConfigurationcan discover and apply it to the application'sObjectMapperautomatically. - 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'sRequestMappingHandlerAdapter. - 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
- 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
DmxObservationbean bound to the application'sObservationRegistry. - 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
DmxTracingbean bound to the application'sTracer. - 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, andTransactionalValidatedannotations. - 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.Leftor aEither.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
XmlAdapterforEither. - 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;nullotherwise. - err(Error) - Static method in interface dmx.fun.Result
-
Creates a
Resultinstance 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.
- Err(Error) - Constructor for record class dmx.fun.Result.Err
-
Compact canonical constructor — validates that
erroris 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
errorrecord component. - error() - Method in record class dmx.fun.Validated.Invalid
-
Returns the value of the
errorrecord component. - errors() - Method in record class dmx.fun.Result.Partition
-
Returns the value of the
errorsrecord component. - errors() - Method in record class dmx.fun.Results.Partition
-
Returns the value of the
errorsrecord 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-computedTry<T>and a release function. - exceptionClassifier(Function) - Method in class dmx.fun.micrometer.DmxMetered
-
Sets the function that maps each failure cause to its
exceptiontag value. - exceptionClassifier(Function) - Method in class dmx.fun.observation.DmxObserved
-
Sets the function that maps each failure cause to its
exceptionkey value. - exceptionClassifier(Function) - Method in class dmx.fun.tracing.DmxTraced
-
Sets the function that maps each failure cause to its
exceptiontag 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
actioninside a new JTA transaction. - execute(Supplier) - Method in class dmx.fun.spring.TxResult
-
Executes
actioninside a transaction using the defaultTransactionDefinition(propagation REQUIRED, isolation DEFAULT). - execute(Supplier) - Method in class dmx.fun.quarkus.TxTry
-
Executes
actioninside a new JTA transaction. - execute(Supplier) - Method in class dmx.fun.spring.TxTry
-
Executes
actioninside a transaction using the defaultTransactionDefinition(propagation REQUIRED, isolation DEFAULT). - execute(Supplier) - Method in class dmx.fun.spring.TxValidated
-
Executes
actioninside a transaction using the defaultTransactionDefinition(propagation REQUIRED, isolation DEFAULT). - execute(TransactionDefinition, Supplier) - Method in class dmx.fun.spring.TxResult
-
Executes
actioninside a transaction configured bydef. - execute(TransactionDefinition, Supplier) - Method in class dmx.fun.spring.TxTry
-
Executes
actioninside a transaction configured bydef. - execute(TransactionDefinition, Supplier) - Method in class dmx.fun.spring.TxValidated
-
Executes
actioninside a transaction configured bydef. - executeNew(Supplier) - Method in class dmx.fun.quarkus.TxResult
-
Executes
actionin 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
actionin 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
Tryis aFailurecaused 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
Tryinstance representing a failure with the given cause. - Failure(Throwable) - Constructor for record class dmx.fun.Try.Failure
-
Compact canonical constructor — validates that
causeis non-null. - failures() - Method in record class dmx.fun.Tries.Partition
-
Returns the value of the
failuresrecord component. - failures() - Method in record class dmx.fun.Try.Partition
-
Returns the value of the
failuresrecord component. - filter(BiPredicate) - Method in class dmx.fun.NonEmptyMap
-
Returns a new
NonEmptyMapcontaining only entries for whichpredicatereturnstrue, wrapped inOption.some(Object). - filter(Predicate) - Method in class dmx.fun.NonEmptySet
-
Returns a new
NonEmptySetcontaining elements that satisfypredicate, wrapped inOption.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
Tryusing 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 usingmerge. - flatMap(Function) - Method in interface dmx.fun.Validated
-
Fail-fast sequential composition: applies
mapperto the value ifValidated.Valid. - flatMap(Function) - Method in interface dmx.fun.Either
-
Applies
mapperto the right value and returns the resultingEither, leaving aEither.Leftunchanged. - 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
Lazyby applyingfto 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
Resultinstance and returns the resultingResult. - flatMapError(Function) - Method in interface dmx.fun.Try
-
Applies the given mapping function to the cause of a failed
Tryinstance and returns the resultingTry. - 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
mapperto the left value and returns the resultingEither, leaving aEither.Rightunchanged. - flatZip(Function) - Method in interface dmx.fun.Option
-
Alias for
Option.zipWith(Function). - fold(Function, Function) - Method in interface dmx.fun.Either
- fold(Function, Function) - Method in interface dmx.fun.Try
-
Folds the current
Tryinstance 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
Someor aNone. - fromAutoCloseable(CheckedSupplier) - Static method in class dmx.fun.Resource
-
Creates a
Resource<T>from anAutoCloseablesupplier. - fromEither(Either) - Static method in interface dmx.fun.Validated
-
Converts an
Eitherto aValidated. - fromEither(Either) - Static method in interface dmx.fun.Result
-
Converts an
Eitherinto aResult. - fromEither(Either) - Static method in interface dmx.fun.Option
- fromEither(Either, Function) - Static method in interface dmx.fun.Try
-
Converts an
Eitherinto aTry. - fromFuture(CompletableFuture) - Static method in class dmx.fun.Lazy
- fromFuture(CompletableFuture) - Static method in interface dmx.fun.Result
-
Converts a
CompletableFutureinto aResultby blocking until the future completes. - fromFuture(CompletableFuture) - Static method in interface dmx.fun.Try
-
Converts a
CompletableFutureinto aTryby blocking until the future completes. - fromList(List) - Static method in class dmx.fun.NonEmptyList
-
Attempts to construct a
NonEmptyListfrom a plainList. - fromMap(Map) - Static method in class dmx.fun.NonEmptyMap
-
Attempts to construct a
NonEmptyMapfrom a plainMap. - fromOption(Option, E) - Static method in interface dmx.fun.Validated
-
Converts an
Optionto aValidated. - fromOption(Option, E) - Static method in interface dmx.fun.Result
- fromOption(Option, Supplier) - Static method in interface dmx.fun.Try
- fromOptional(Optional, E) - Static method in interface dmx.fun.Validated
-
Converts a JDK
Optionalto aValidated. - fromOptional(Optional) - Static method in class dmx.fun.NonEmptyMap
- fromOptional(Optional) - Static method in class dmx.fun.NonEmptyList
-
Attempts to construct a singleton
NonEmptyListfrom a JDKOptional. - fromOptional(Optional) - Static method in class dmx.fun.NonEmptySet
-
Attempts to construct a singleton
NonEmptySetfrom a JDKOptional. - fromOptional(Optional) - Static method in interface dmx.fun.Result
- fromOptional(Optional, Supplier) - Static method in interface dmx.fun.Try
- fromOptional(Optional) - Static method in interface dmx.fun.Option
- fromResult(Result) - Static method in interface dmx.fun.Option
- fromResult(Result) - Static method in interface dmx.fun.Try
- fromResult(Result) - Static method in interface dmx.fun.Validated
-
Converts a
Resultto aValidated. - fromSet(Set) - Static method in class dmx.fun.NonEmptySet
-
Attempts to construct a
NonEmptySetfrom a plainSet. - fromTry(Try) - Static method in interface dmx.fun.Option
- fromTry(Try, Function) - Static method in interface dmx.fun.Validated
-
Converts a
Tryto aValidated. - 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
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
Optioninstance if it is of typeSome. - get() - Method in interface dmx.fun.Result
-
Retrieves the value contained within this
Resultinstance 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, orOption.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
fallbackif this is aEither.Right. - getLeftOrElseGet(Supplier) - Method in interface dmx.fun.Either
-
Returns the left value if present, or the value supplied by
supplierif this is aEither.Right. - getOrElse(Value) - Method in interface dmx.fun.Result
-
Returns the success value if present, or
fallbackotherwise. - getOrElse(Value) - Method in record class dmx.fun.Result.Err
-
Returns the success value if present, or
fallbackotherwise. - getOrElse(Value) - Method in record class dmx.fun.Result.Ok
-
Returns the success value if present, or
fallbackotherwise. - getOrElse(A) - Method in interface dmx.fun.Validated
-
Returns the success value if present, or
fallbackotherwise. - getOrElse(A) - Method in record class dmx.fun.Validated.Invalid
-
Returns the success value if present, or
fallbackotherwise. - getOrElse(A) - Method in record class dmx.fun.Validated.Valid
-
Returns the success value if present, or
fallbackotherwise. - getOrElse(Value) - Method in interface dmx.fun.Option
-
Retrieves the encapsulated value if this
Optioninstance is of typeSome, or returns the provided fallback value if this instance is of typeNone. - 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 aFailure. - getOrElseGet(Supplier) - Method in interface dmx.fun.Option
-
Retrieves the encapsulated value if this
Optioninstance is of typeSome, or computes and returns a fallback value supplied by the givenfallbackSupplierif this instance is of typeNone. - getOrElseGet(Supplier) - Method in interface dmx.fun.Try
-
Returns the value of this
Tryif it is aSuccess, or retrieves a fallback value using the providedfallbackSupplierif it is aFailure. - getOrElseGet(Supplier) - Method in interface dmx.fun.Result
-
Returns the success value if present, or the value produced by
supplierotherwise. - getOrElseGet(Supplier) - Method in record class dmx.fun.Result.Err
-
Returns the success value if present, or the value produced by
supplierotherwise. - getOrElseGet(Supplier) - Method in record class dmx.fun.Result.Ok
-
Returns the success value if present, or the value produced by
supplierotherwise. - getOrElseGet(Supplier) - Method in interface dmx.fun.Validated
-
Returns the success value if present, or the value produced by
supplierotherwise. - getOrElseGet(Supplier) - Method in record class dmx.fun.Validated.Invalid
-
Returns the success value if present, or the value produced by
supplierotherwise. - getOrElseGet(Supplier) - Method in record class dmx.fun.Validated.Valid
-
Returns the success value if present, or the value produced by
supplierotherwise. - getOrElseGetWithError(Function) - Method in interface dmx.fun.Result
-
Returns the value of this
Ok, or applieserrorMapperto the contained error and returns the result. - getOrNull() - Method in interface dmx.fun.Result
-
Returns the success value if present, or
nullotherwise. - getOrNull() - Method in record class dmx.fun.Result.Err
-
Returns the success value if present, or
nullotherwise. - getOrNull() - Method in record class dmx.fun.Result.Ok
-
Returns the success value if present, or
nullotherwise. - getOrNull() - Method in interface dmx.fun.Validated
-
Returns the success value if present, or
nullotherwise. - getOrNull() - Method in record class dmx.fun.Validated.Invalid
-
Returns the success value if present, or
nullotherwise. - getOrNull() - Method in record class dmx.fun.Validated.Valid
-
Returns the success value if present, or
nullotherwise. - getOrNull() - Method in interface dmx.fun.Option
-
Retrieves the encapsulated value if this
Optioninstance is of typeSome, or returnsnullif this instance is of typeNone. - getOrNull() - Method in interface dmx.fun.Try
-
Returns the value of this
Tryif it is aSuccess, ornullif it is aFailure. - 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 aFailure. - 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
Optioninstance is of typeSome. - 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
fallbackif this is aEither.Left. - getRightOrElseGet(Supplier) - Method in interface dmx.fun.Either
-
Returns the right value if present, or the value supplied by
supplierif this is aEither.Left. - groupingBy(Function) - Static method in interface dmx.fun.Result
-
Returns a
Collectorthat groups stream elements by a key derived from each element. - groupingBy(Function) - Static method in class dmx.fun.Results
-
Returns a
Collectorthat groups stream elements by a key derived from each element. - groupingBy(Function, Function) - Static method in interface dmx.fun.Result
-
Returns a
Collectorthat groups stream elements by a key derived from each element and applies a downstream function to each group'sNonEmptyList. - groupingBy(Function, Function) - Static method in class dmx.fun.Results
-
Returns a
Collectorthat groups stream elements by a key derived from each element, then applies a finishing function to each group'sNonEmptyList. - Guard<T> - Interface in dmx.fun
-
A named, composable predicate that produces a
Validatedresult 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
ValidatedisInvalidand 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
trueif this accumulator was created withAccumulator.of(Object, Object)orAccumulator.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
OptionisSomeand 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
-
HttpTimeoutExceptionthrown by the underlyingHttpClient.
I
- intercept(InvocationContext) - Method in class dmx.fun.quarkus.TransactionalDmxInterceptor
- intersection(Set) - Method in class dmx.fun.NonEmptySet
-
Returns a new
NonEmptySetcontaining only elements present in both this set andother, wrapped inOption.some(Object). - invalid(E) - Static method in interface dmx.fun.Validated
-
Creates an
Validated.Invalidinstance wrapping the given error. - Invalid(E) - Constructor for record class dmx.fun.Validated.Invalid
-
Compact canonical constructor — validates that
erroris non-null. - invalidNel(E) - Static method in interface dmx.fun.Validated
- isDefined() - Method in interface dmx.fun.Option
-
Determines whether this instance represents a defined value.
- isEmpty() - Method in class dmx.fun.NonEmptyList
-
Always
false— aNonEmptyListalways has at least one element. - isEmpty() - Method in interface dmx.fun.Option
-
Checks if this
Optioninstance represents the absence of a value. - isErr() - Method in class dmx.fun.assertj.ResultAssert
-
Verifies that the
ResultisErr. - isError() - Method in interface dmx.fun.Result
-
Returns
trueif this instance is the error (Result.Err) variant. - isEvaluated() - Method in class dmx.fun.Lazy
-
Returns
trueif the supplier has already been evaluated. - isFailure() - Method in class dmx.fun.assertj.TryAssert
-
Verifies that the
Tryis aFailure. - 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
ValidatedisInvalid. - isInvalid() - Method in interface dmx.fun.Validated
-
Returns
trueif this instance isValidated.Invalid. - isLeft() - Method in class dmx.fun.assertj.EitherAssert
-
Verifies that the
Eitheris aLeft. - isLeft() - Method in interface dmx.fun.Either
-
Returns
trueif this is aEither.Left. - isNone() - Method in class dmx.fun.assertj.OptionAssert
-
Verifies that the
OptionisNone. - isOk() - Method in class dmx.fun.assertj.ResultAssert
-
Verifies that the
ResultisOk. - 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
Eitheris aRight. - isRight() - Method in interface dmx.fun.Either
-
Returns
trueif this is aEither.Right. - isSome() - Method in class dmx.fun.assertj.OptionAssert
-
Verifies that the
OptionisSome. - isSuccess() - Method in class dmx.fun.assertj.TryAssert
-
Verifies that the
Tryis aSuccess. - isSuccess() - Method in interface dmx.fun.Result
-
Returns
trueif 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
trueif this instance is the success (Validated.Valid) variant. - isValid() - Method in class dmx.fun.assertj.ValidatedAssert
-
Verifies that the
ValidatedisValid. - isValid() - Method in interface dmx.fun.Validated
-
Returns
trueif this instance isValidated.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
NonEmptySetcontaining 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;nullotherwise. - left(L) - Static method in interface dmx.fun.Either
-
Creates a
Either.Leftinstance wrapping the given value. - Left(L) - Constructor for record class dmx.fun.Either.Left
-
Validates that
valueis non-null. - liftEither(Either, Function, Function) - Static method in record class dmx.fun.Accumulator
-
Lifts an
Eithervalue into anAccumulator, recording a log entry viarightLogon the right track orleftLogon the left track. - liftOption(Option, Function, E) - Static method in record class dmx.fun.Accumulator
-
Lifts an
Optionvalue into anAccumulator, 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
Resultvalue into anAccumulator, recording a log entry viaokLogon success orerrLogon failure. - liftTry(Try, Function, Function) - Static method in record class dmx.fun.Accumulator
-
Lifts a
Tryvalue into anAccumulator, recording a log entry viasuccessLogon success orfailureLogon 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
fto all four elements. - map(TriFunction) - Method in record class dmx.fun.Tuple3
-
Collapses this triple into a single value by applying
fto all three elements. - map(BiFunction) - Method in record class dmx.fun.Tuple2
-
Collapses this pair into a single value by applying
fto 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
- map(Function) - Method in interface dmx.fun.Either
-
Maps the right value using
mapper, leaving aEither.Leftunchanged. - map(Function) - Method in class dmx.fun.Lazy
-
Returns a new
Lazythat appliesfto this value when evaluated. - map(Function) - Method in class dmx.fun.NonEmptyList
-
Applies
mapperto every element and returns a newNonEmptyListof the results. - map(Function) - Method in class dmx.fun.NonEmptySet
-
Applies
mapperto every element and returns a newNonEmptySetof the results. - map(Function) - Method in class dmx.fun.Resource
-
Returns a new
Resource<R>whose body receives the result of applyingfnto 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
Resultinstance 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
Optioninstances using the providedTriFunction. - map4(Option, Option, Option, Option, QuadFunction) - Static method in interface dmx.fun.Option
-
Combines the values of four
Optioninstances using the providedQuadFunction. - mapAccumulated(Function) - Method in record class dmx.fun.Accumulator
-
Transforms the accumulation, leaving the value unchanged.
- mapError(Function) - Method in interface dmx.fun.Validated
- mapError(Function) - Method in interface dmx.fun.Result
-
Transforms the error value of an erroneous
Resultinstance using the provided mapping function. - mapFailure(Function) - Method in interface dmx.fun.Try
-
Transforms the failure cause using the given function, leaving a
Successunchanged. - mapFirst(Function) - Method in record class dmx.fun.Tuple2
-
Returns a new tuple with
fapplied to the first element; the second element is unchanged. - mapFirst(Function) - Method in record class dmx.fun.Tuple3
-
Returns a new tuple with
fapplied to the first element; the other elements are unchanged. - mapFirst(Function) - Method in record class dmx.fun.Tuple4
-
Returns a new tuple with
fapplied to the first element; the other elements are unchanged. - mapFourth(Function) - Method in record class dmx.fun.Tuple4
-
Returns a new tuple with
fapplied to the fourth element; the other elements are unchanged. - mapKeys(Function) - Method in class dmx.fun.NonEmptyMap
-
Applies
mapperto every key and returns a newNonEmptyMapwith the mapped keys and the original values. - mapLeft(Function) - Method in interface dmx.fun.Either
-
Maps the left value using
mapper, leaving aEither.Rightunchanged. - mapSecond(Function) - Method in record class dmx.fun.Tuple2
-
Returns a new tuple with
fapplied to the second element; the first element is unchanged. - mapSecond(Function) - Method in record class dmx.fun.Tuple3
-
Returns a new tuple with
fapplied to the second element; the other elements are unchanged. - mapSecond(Function) - Method in record class dmx.fun.Tuple4
-
Returns a new tuple with
fapplied to the second element; the other elements are unchanged. - mapThird(Function) - Method in record class dmx.fun.Tuple3
-
Returns a new tuple with
fapplied to the third element; the other elements are unchanged. - mapThird(Function) - Method in record class dmx.fun.Tuple4
-
Returns a new tuple with
fapplied 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 aTry-returning function to the acquired value. - mapValues(Function) - Method in class dmx.fun.NonEmptyMap
-
Applies
mapperto every value and returns a newNonEmptyMapwith the same keys and mapped values. - mapValuesWithKey(BiFunction) - Method in class dmx.fun.NonEmptyMap
-
Applies
mapperto every key-value pair and returns a newNonEmptyMapwith 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.Leftor aEither.Right, then discards the result. - match(Consumer, Consumer) - Method in interface dmx.fun.Try
-
Applies
onSuccessto the value when this is aSuccess, oronFailureto the cause when this is aFailure. - 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
NonEmptyMapthat is the union of this map andother. - 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
NetworkFailurerecord class. - none() - Static method in interface dmx.fun.Option
-
Creates an instance of
Optionthat represents the absence of a value. - None() - Constructor for record class dmx.fun.Option.None
-
Creates an instance of a
Nonerecord 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
supplierinside a new observation. - observeResult(String, CheckedSupplier) - Method in class dmx.fun.observation.DmxObservation
-
Executes
supplierinside a newObservationnamedname. - observeTry(CheckedSupplier) - Method in class dmx.fun.observation.DmxObserved
-
Executes
supplierinside a new observation. - observeTry(String, CheckedSupplier) - Method in class dmx.fun.observation.DmxObservation
-
Executes
supplierinside a newObservationnamedname. - of(A, B) - Static method in record class dmx.fun.Tuple2
-
Creates a new
Tuple2with the given elements. - of(A, B, C) - Static method in record class dmx.fun.Tuple3
-
Creates a new
Tuple3with the given elements. - of(A, B, C, D) - Static method in record class dmx.fun.Tuple4
-
Creates a new
Tuple4with the given elements. - of(A, E) - Static method in record class dmx.fun.Accumulator
-
Creates an
Accumulatorpairing 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
Tryinstance by executing the givenCheckedSupplier. - of(Bulkhead) - Static method in class dmx.fun.resilience4j.DmxBulkhead
-
Wraps an existing
Bulkheadinstance. - of(CircuitBreaker) - Static method in class dmx.fun.resilience4j.DmxCircuitBreaker
-
Wraps an existing
CircuitBreakerinstance. - of(RateLimiter) - Static method in class dmx.fun.resilience4j.DmxRateLimiter
-
Wraps an existing
RateLimiterinstance. - of(Retry) - Static method in class dmx.fun.resilience4j.DmxRetry
-
Wraps an existing
Retryinstance. - 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
MeterRegistryand 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
ObservationRegistryand 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
Tracerand 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
Bulkheadfrom the given name and config, then wraps it. - of(String, CircuitBreakerConfig) - Static method in class dmx.fun.resilience4j.DmxCircuitBreaker
-
Creates a new
CircuitBreakerfrom the given name and config, then wraps it. - of(String, RateLimiterConfig) - Static method in class dmx.fun.resilience4j.DmxRateLimiter
-
Creates a new
RateLimiterfrom the given name and config, then wraps it. - of(String, RetryConfig) - Static method in class dmx.fun.resilience4j.DmxRetry
-
Creates a new
Retryfrom the given name and config, then wraps it. - of(HttpClient) - Static method in class dmx.fun.http.DmxHttpClient
-
Creates a new
DmxHttpClientwrapping the givenHttpClient. - 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
- of(K, V, Map) - Static method in class dmx.fun.NonEmptyMap
-
Creates a
NonEmptyMapwith the given head entry and additional entries. - of(T, List) - Static method in class dmx.fun.NonEmptyList
-
Creates a
NonEmptyListwith the given head and tail. - of(T, Set) - Static method in class dmx.fun.NonEmptySet
-
Creates a
NonEmptySetwith 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
Tryfrom a potentiallynullvalue. - ok - Variable in class dmx.fun.jakarta.jaxb.ResultXmlAdapter.ResultElement
-
Present when the result is
Ok;nullotherwise. - ok(Value) - Static method in interface dmx.fun.Result
-
Creates a
Resultinstance 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)orResult<Value, Error> r = Result.ok(value) - Ok(Value) - Constructor for record class dmx.fun.Result.Ok
-
Compact canonical constructor — validates that
valueis non-null. - oks() - Method in record class dmx.fun.Result.Partition
-
Returns the value of the
oksrecord component. - oks() - Method in record class dmx.fun.Results.Partition
-
Returns the value of the
oksrecord 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
Optiontype 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
HandlerMethodReturnValueHandlerthat convertsOptionreturn values into HTTP responses automatically:Option.some(Object)→ HTTP 200 with the unwrapped value serialized by the delegateHandlerMethodReturnValueHandler(typicallyRequestResponseBodyMethodProcessor).Option.none()→ HTTP 404 with an empty body. - OptionHandlerMethodReturnValueHandler(HandlerMethodReturnValueHandler) - Constructor for class dmx.fun.spring.boot.web.OptionHandlerMethodReturnValueHandler
-
Creates a handler that unwraps
Optionreturn 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
XmlAdapterforOption. - 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
otherpasses. - orElse(Option) - Method in interface dmx.fun.Option
-
Returns this
Optionif it isSome, otherwise returnsalternative. - orElse(Result) - Method in interface dmx.fun.Result
-
Returns this
Resultif it isOk, otherwise returnsalternative. - orElse(Supplier) - Method in interface dmx.fun.Option
-
Returns this
Optionif it isSome, otherwise evaluates and returns the supplier's result. - orElse(Supplier) - Method in interface dmx.fun.Result
-
Returns this
Resultif it isOk, 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
Collectorthat partitions aStream<Result<V, E>>into ok-values and errors. - partitioning() - Static method in class dmx.fun.Tries
-
Returns a
Collectorthat partitions aStream<Try<V>>into successes and failures. - partitioningBy() - Static method in interface dmx.fun.Result
-
Returns a
Collectorthat partitions aStream<Result<V, E>>into two typed lists:Result.Partition.oks()for values fromOkelements, andResult.Partition.errors()for errors fromErrelements. - partitioningBy() - Static method in interface dmx.fun.Try
-
Returns a
Collectorthat partitions aStream<Try<V>>into two typed lists:Try.Partition.successes()for values fromSuccesselements, andTry.Partition.failures()for causes fromFailureelements. - peek(Consumer) - Method in interface dmx.fun.Validated
- peek(Consumer) - Method in interface dmx.fun.Either
- 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
Resultinstance represents a successful result. - peekError(Consumer) - Method in interface dmx.fun.Validated
- peekError(Consumer) - Method in interface dmx.fun.Result
-
Executes the given action if the current
Resultinstance represents an erroneous result. - peekLeft(Consumer) - Method in interface dmx.fun.Either
- prepend(T) - Method in class dmx.fun.NonEmptyList
-
Returns a new
NonEmptyListwithelementprepended at the front. - presentToList() - Static method in class dmx.fun.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
Validatedwithother, 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
Accumulatorwith a value and an empty (identity) accumulation.
Q
- QuadFunction<A,
B, - Interface in dmx.funC, D, R> -
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
Resultinto 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 newTry<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
Resultinto a newResultby applying the given rescue function to the contained error. - registry(MeterRegistry) - Method in class dmx.fun.micrometer.DmxMetered
-
Sets the
MeterRegistryto register metrics with. - registry(ObservationRegistry) - Method in class dmx.fun.observation.DmxObserved
-
Sets the
ObservationRegistryto 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 —
NonEmptyListis immutable. - removeIf(Predicate) - Method in class dmx.fun.NonEmptyList
- removeLast() - Method in class dmx.fun.NonEmptyList
-
Unsupported —
NonEmptyListis 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
responserecord component. - response() - Method in record class dmx.fun.http.HttpError.ServerError
-
Returns the value of the
responserecord 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
- ResultHandlerMethodReturnValueHandler(HandlerMethodReturnValueHandler) - Constructor for class dmx.fun.spring.boot.web.ResultHandlerMethodReturnValueHandler
- 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.Partitionso callers can useResults.Partitionwithout importingResultdirectly. - ResultXmlAdapter - Class in dmx.fun.jakarta.jaxb
-
JAXB
XmlAdapterforResult. - 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
NonEmptyListwith all elements in reverse order. - right - Variable in class dmx.fun.jakarta.jaxb.EitherXmlAdapter.EitherElement
-
Present when the value is
Right;nullotherwise. - right(R) - Static method in interface dmx.fun.Either
-
Creates a
Either.Rightinstance wrapping the given value. - Right(R) - Constructor for record class dmx.fun.Either.Right
-
Validates that
valueis 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
CheckedRunnableand returns aTryinstance 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
deserializerto the body. - sendAsync(HttpRequest, HttpResponse.BodyHandler) - Method in class dmx.fun.http.DmxHttpClient
-
Sends an HTTP request asynchronously and returns a
CompletableFuturethat completes with aResult. - sequence() - Static method in class dmx.fun.Options
-
Returns a
Collectorthat reduces aStream<Option<V>>to a singleOption<List<V>>:Option.some(list)if every element is present, orOption.none()if any element is empty. - sequence(NonEmptyList) - Static method in class dmx.fun.NonEmptyList
- sequence(Iterable) - Static method in interface dmx.fun.Option
-
Transforms an iterable of
Option<V>into a singleOption<List<V>>. - sequence(Iterable) - Static method in interface dmx.fun.Result
-
Transforms an iterable of
Result<V, E>into a singleResult<List<V>, E>. - sequence(Iterable) - Static method in interface dmx.fun.Try
-
Transforms an iterable of
Try<V>into a singleTry<List<V>>. - sequence(Iterable, BinaryOperator) - Static method in interface dmx.fun.Validated
-
Transforms an iterable of
Validated<E, A>into a singleValidated<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 usingmerge, starting fromempty. - sequence(Stream) - Static method in interface dmx.fun.Option
-
Converts a stream of
Optionobjects into a singleOptioncontaining aListof values, if allOptioninstances in the stream areOption.Some. - sequence(Stream) - Static method in interface dmx.fun.Result
-
Transforms a stream of
Result<V, E>into a singleResult<List<V>, E>. - sequence(Stream) - Static method in interface dmx.fun.Try
-
Transforms a stream of
Try<V>into a singleTry<List<V>>. - sequence(Stream, BinaryOperator) - Static method in interface dmx.fun.Validated
-
Transforms a stream of
Validated<E, A>into a singleValidated<E, List<A>>. - sequenceCollector() - Static method in interface dmx.fun.Option
- sequenceEither(NonEmptyList) - Static method in class dmx.fun.NonEmptyList
- sequenceEither(NonEmptyMap) - Static method in class dmx.fun.NonEmptyMap
-
Sequences a
NonEmptyMap<K, Either<E, V>>into anEither<E, NonEmptyMap<K, V>>. - sequenceEither(NonEmptySet) - Static method in class dmx.fun.NonEmptySet
-
Sequences a
NonEmptySet<Either<E, T>>into anEither<E, NonEmptySet<T>>. - sequenceNel(Iterable) - Static method in interface dmx.fun.Validated
-
Sequences an
IterableofValidated<NonEmptyList<E>, A>into a singleValidated<NonEmptyList<E>, List<A>>, accumulating all errors usingNonEmptyList.concat(NonEmptyList). - sequenceOption(NonEmptyMap) - Static method in class dmx.fun.NonEmptyMap
-
Sequences a
NonEmptyMap<K, Option<V>>into anOption<NonEmptyMap<K, V>>. - sequenceOption(NonEmptySet) - Static method in class dmx.fun.NonEmptySet
-
Sequences a
NonEmptySet<Option<T>>into anOption<NonEmptySet<T>>. - sequenceResult(NonEmptyList) - Static method in class dmx.fun.NonEmptyList
- sequenceResult(NonEmptyMap) - Static method in class dmx.fun.NonEmptyMap
-
Sequences a
NonEmptyMap<K, Result<V, E>>into aResult<NonEmptyMap<K, V>, E>. - sequenceResult(NonEmptySet) - Static method in class dmx.fun.NonEmptySet
-
Sequences a
NonEmptySet<Result<T, E>>into aResult<NonEmptySet<T>, E>. - sequenceTry(NonEmptyList) - Static method in class dmx.fun.NonEmptyList
- sequenceTry(NonEmptyMap) - Static method in class dmx.fun.NonEmptyMap
-
Sequences a
NonEmptyMap<K, Try<V>>into aTry<NonEmptyMap<K, V>>. - sequenceTry(NonEmptySet) - Static method in class dmx.fun.NonEmptySet
-
Sequences a
NonEmptySet<Try<T>>into aTry<NonEmptySet<T>>. - ServerError(int, HttpResponse) - Constructor for record class dmx.fun.http.HttpError.ServerError
-
Creates an instance of a
ServerErrorrecord 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
NonEmptyMapcontaining exactly one entry. - singleton(T) - Static method in class dmx.fun.NonEmptyList
-
Creates a
NonEmptyListcontaining exactly one element. - singleton(T) - Static method in class dmx.fun.NonEmptySet
-
Creates a
NonEmptySetcontaining 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.Someinstance that encapsulates the given non-null value. - Some(Value) - Constructor for record class dmx.fun.Option.Some
-
Constructs a new
Someinstance with the specified non-null value. - statusCode() - Method in record class dmx.fun.http.HttpError.ClientError
-
Returns the value of the
statusCoderecord component. - statusCode() - Method in record class dmx.fun.http.HttpError.ServerError
-
Returns the value of the
statusCoderecord component. - stream() - Method in record class dmx.fun.Accumulator
-
Returns a single-element
Streamof the value whenAccumulator.hasValue()istrue, or an empty stream forAccumulator.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
Eitheras a single-element or emptyStream. - 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
Streamcontaining the success value, or an empty stream on failure. - streamLeft() - Method in interface dmx.fun.Either
-
Returns this
Eitheras a single-element or emptyStreamof 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
Tryinstance containing the provided value. - Success(Value) - Constructor for record class dmx.fun.Try.Success
-
Creates an instance of a
Successrecord class. - successes() - Method in record class dmx.fun.Tries.Partition
-
Returns the value of the
successesrecord component. - successes() - Method in record class dmx.fun.Try.Partition
-
Returns the value of the
successesrecord 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.LeftbecomesEither.Rightand vice versa. - swap() - Method in interface dmx.fun.Result
-
Swaps the
OkandErrchannels of thisResult.
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
Accumulatorthat 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
Timeoutrecord 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)whenAccumulator.hasValue()istrue, orEither.left(Object)carrying the accumulated side-channel when this accumulator was created byAccumulator.tell(Object). - toEither() - Method in class dmx.fun.Lazy
-
Evaluates this
Lazyinside anEither, capturing any exception thrown by the supplier asLeft(Throwable). - toEither() - Method in interface dmx.fun.Result
-
Converts this
Resultto anEither. - toEither() - Method in interface dmx.fun.Try
-
Converts this
Tryto anEither. - toEither() - Method in interface dmx.fun.Validated
-
Converts this
Validatedto anEither. - toEither(Function) - Method in class dmx.fun.Lazy
-
Evaluates this
Lazyinside anEither, converting any exception thrown by the supplier into a typed left value usingerrorMapper. - toEither(L) - Method in interface dmx.fun.Option
-
Converts this
Optionto anEither. - toFuture() - Method in class dmx.fun.Lazy
-
Converts this
Lazyinto aCompletableFuture. - toFuture() - Method in interface dmx.fun.Option
-
Converts this
Optioninto an already-completedCompletableFuture. - toFuture() - Method in interface dmx.fun.Result
-
Converts this
Resultinto an already-completedCompletableFuture. - toFuture() - Method in interface dmx.fun.Try
-
Converts this
Tryinto an already-completedCompletableFuture. - toFuture(Function) - Method in interface dmx.fun.Result
-
Converts this
Resultinto an already-completedCompletableFuture, usingerrorMapperto convert the error value into aThrowablewhen this isErr. - toList() - Method in class dmx.fun.NonEmptyList
-
Returns an unmodifiable
Listcontaining all elements (head followed by tail). - toList() - Static method in interface dmx.fun.Result
- toList() - Static method in class dmx.fun.Results
-
Returns a
Collectorthat accumulates aStream<Result<V, E>>into a singleResult<List<V>, E>, failing on the firstErrencountered. - toList() - Static method in class dmx.fun.Tries
-
Returns a
Collectorthat accumulates aStream<Try<V>>into a singleTry<List<V>>, failing on the firstFailureencountered. - toList() - Static method in interface dmx.fun.Try
-
Returns a
Collectorthat accumulates aStream<Try<V>>into a singleTry<List<V>>, failing on the firstFailureencountered. - toMap() - Method in class dmx.fun.NonEmptyMap
-
Returns an unmodifiable
Mapcontaining all entries (head entry first, then tail entries in insertion order). - toNonEmptyList() - Static method in class dmx.fun.NonEmptyList
-
Alias for
NonEmptyList.collector(). - toNonEmptyList() - Method in class dmx.fun.NonEmptyMap
-
Converts this map to a
NonEmptyListof its entries in insertion order. - toNonEmptyList() - Method in class dmx.fun.NonEmptySet
-
Converts this set to a
NonEmptyListof its elements in insertion order. - toNonEmptyList() - Static method in class dmx.fun.Options
-
Returns a
Collectorthat accumulates aStream<T>into anOption<NonEmptyList<T>>:Option.some(nel)if the stream is non-empty, orOption.none()if the stream is empty. - toNonEmptyMap(Function) - Method in class dmx.fun.NonEmptySet
-
Returns a
NonEmptyMapby applyingvalueMapperto 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), orOption.none()if this accumulator was created byAccumulator.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
Eitherto anOption:Either.RightbecomesOption.some(Object),Either.LeftbecomesOption.none(). - toOption() - Method in class dmx.fun.Lazy
-
Evaluates this
Lazyand wraps the result in anOption. - 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
Eitherto a standardOptional<R>. - toOptional() - Method in class dmx.fun.Lazy
-
Evaluates this
Lazyand returns the value wrapped in aOptional. - 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
Resultto a standardOptional<V>. - toOptional() - Method in interface dmx.fun.Try
-
Converts this
Tryto a standardOptional<V>. - toOptional() - Method in interface dmx.fun.Validated
-
Converts this
Validatedto a JDKOptional. - toResult() - Method in record class dmx.fun.Accumulator
-
Converts this accumulator to a
Result:Result.ok(Object)whenAccumulator.hasValue()istrue, orResult.err(Object)carrying the accumulated side-channel when this accumulator was created byAccumulator.tell(Object). - toResult() - Method in interface dmx.fun.Either
-
Converts this
Eitherto aResult. - toResult() - Method in class dmx.fun.Lazy
-
Evaluates this
Lazyinside aResult, capturing any exception thrown by the supplier asErr(Throwable). - toResult() - Method in interface dmx.fun.Try
-
Converts the current
Tryinstance into aResultrepresentation. - toResult() - Method in interface dmx.fun.Validated
-
Converts this
Validatedto aResult. - toResult(Function) - Method in class dmx.fun.Lazy
-
Evaluates this
Lazyinside aResult, converting any exception thrown by the supplier into a typed error usingerrorMapper. - toResult(Function) - Method in interface dmx.fun.Try
-
Converts this
Tryinto aResult<Value, E>using a custom error mapper. - toResult(TError) - Method in interface dmx.fun.Option
-
Converts the current option to a
Resultinstance. - 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
Setcontaining all elements (head first, then tail in insertion order). - toStream() - Method in class dmx.fun.NonEmptyList
-
Returns a sequential
Streamof all elements (head first, then tail). - toStream() - Method in class dmx.fun.NonEmptyMap
-
Returns a sequential
Streamof all entries in insertion order. - toStream() - Method in class dmx.fun.NonEmptySet
-
Returns a sequential
Streamof 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
- toTry(Function) - Method in interface dmx.fun.Result
-
Converts the current result into a
Tryinstance. - toTry(Function) - Method in interface dmx.fun.Either
-
Converts this
Eitherto aTry. - toTry(Function) - Method in interface dmx.fun.Validated
-
Converts this
Validatedto aTry. - toTry(Supplier) - Method in interface dmx.fun.Option
-
Converts the current instance to a
Tryinstance. - 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
Tuple2of(accumulated, value). - toValidated() - Method in interface dmx.fun.Either
-
Converts this
Eitherto aValidated. - tracer(Tracer) - Method in class dmx.fun.tracing.DmxTraced
-
Sets the
Tracerto open spans with. - traceResult(CheckedSupplier) - Method in class dmx.fun.tracing.DmxTraced
-
Executes
supplierinside a new span. - traceResult(String, CheckedSupplier) - Method in class dmx.fun.tracing.DmxTracing
-
Executes
supplierinside a new span namedname. - traceTry(CheckedSupplier) - Method in class dmx.fun.tracing.DmxTraced
-
Executes
supplierinside a new span. - traceTry(String, CheckedSupplier) - Method in class dmx.fun.tracing.DmxTracing
-
Executes
supplierinside a new span namedname. - TransactionalDmxInterceptor - Class in dmx.fun.quarkus
-
CDI interceptor that backs
TransactionalResultandTransactionalTry. - 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
PlatformTransactionManagerto use. - transactionManager() - Element in annotation interface dmx.fun.spring.TransactionalTry
-
Bean name of a specific
PlatformTransactionManagerto use. - transactionManager() - Element in annotation interface dmx.fun.spring.TransactionalValidated
-
Bean name of a specific
PlatformTransactionManagerto 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
mapperand collects the results into aResult<List<B>, E>. - traverse(Iterable, Function) - Static method in interface dmx.fun.Try
-
Maps each element of an iterable through
mapperand collects the results into aTry<List<B>>. - traverse(Iterable, Function, BinaryOperator) - Static method in interface dmx.fun.Validated
-
Maps each element of an iterable through
mapperand collects the results into aValidated<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
Optionfor each input value. - traverse(Stream, Function) - Static method in interface dmx.fun.Result
-
Maps each element of a stream through
mapperand collects the results into aResult<List<B>, E>. - traverse(Stream, Function) - Static method in interface dmx.fun.Try
-
Maps each element of a stream through
mapperand collects the results into aTry<List<B>>. - traverseCollector(Function, BinaryOperator) - Static method in interface dmx.fun.Validated
-
Returns a
Collectorthat maps each input element throughmapperand accumulates the results into a singleValidated<E, List<B>>, collecting all valid values and merging all errors left-to-right usingerrMerge. - traverseNel(Iterable, Function) - Static method in interface dmx.fun.Validated
-
Maps each element of
valuesthroughmapperand accumulates the results into aValidated<NonEmptyList<E>, List<B>>, accumulating all errors usingNonEmptyList.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.Partitionso callers can useTries.Partitionwithout importingTrydirectly. - TriFunction<A,
B, - Interface in dmx.funC, R> -
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
Tryinterface. - 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
XmlAdapterforTry. - 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
Tuple2record 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, - Record Class in dmx.funC> -
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, - Class in dmx.fun.assertjC> -
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, - Record Class in dmx.funC, D> -
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, - Class in dmx.fun.assertjC, D> -
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
TxResultbacked 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
TxResultbacked by the given transaction manager. - txTry(PlatformTransactionManager) - Method in class dmx.fun.spring.boot.DmxFunSpringAutoConfiguration
-
Registers a
TxTrybacked 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
TxTrybacked by the given transaction manager. - txValidated(PlatformTransactionManager) - Method in class dmx.fun.spring.boot.DmxFunSpringAutoConfiguration
-
Registers a
TxValidatedbacked 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 isValidated.isInvalid(). - TxValidated(PlatformTransactionManager) - Constructor for class dmx.fun.spring.TxValidated
-
Creates a
TxValidatedbacked 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
NonEmptySetthat is the union of this set andother. - 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
bodyto it, releases the resource, and returns the body's result wrapped in aTry. - useAsEither(Function, Function) - Method in class dmx.fun.Resource
-
Acquires the resource, applies
bodyto produce anEither, releases the resource, and returns anEither<E, R>. - useAsResult(Function, Function) - Method in class dmx.fun.Resource
-
Acquires the resource, applies
bodyto produce aResult, releases the resource, and returns aResult<R, E>.
V
- valid(A) - Static method in interface dmx.fun.Validated
-
Creates a
Validated.Validinstance wrapping the given value. - Valid(A) - Constructor for record class dmx.fun.Validated.Valid
-
Compact canonical constructor — validates that
valueis non-null. - validate(Validator, T, Class...) - Static method in class dmx.fun.jakarta.validation.DmxValidator
-
Validates
objectand returns violation messages as aNonEmptyList<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
- value - Variable in class dmx.fun.jakarta.jaxb.OptionXmlAdapter.OptionElement
-
The wrapped value;
nullrepresentsOption.none(). - value - Variable in class dmx.fun.jakarta.jaxb.TryXmlAdapter.TryElement
-
Present when the computation succeeded;
nullotherwise. - value() - Method in record class dmx.fun.Accumulator
-
Returns the value of the
valuerecord component. - value() - Method in record class dmx.fun.Either.Left
-
Returns the value of the
valuerecord component. - value() - Method in record class dmx.fun.Either.Right
-
Returns the value of the
valuerecord component. - value() - Method in record class dmx.fun.Option.Some
-
Returns the value of the
valuerecord 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
valuerecord component. - value() - Method in record class dmx.fun.Try.Success
-
Returns the value of the
valuerecord component. - value() - Method in record class dmx.fun.Validated.Valid
-
Returns the value of the
valuerecord component. - values() - Method in class dmx.fun.NonEmptyMap
-
Returns a
NonEmptyListcontaining 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
supplieron a virtual thread and returns the result as aTry.
Z
- zip(Option, Option) - Static method in interface dmx.fun.Option
- zip(Option) - Method in interface dmx.fun.Option
-
Combines the current
Optioninstance with anotherOptioninstance into a singleOptioncontaining aTuple2of their values, if both options are non-empty. - zip(Result, Result) - Static method in interface dmx.fun.Result
- zip(Try, Try) - Static method in interface dmx.fun.Try
- zip3(Option, Option, Option) - Static method in interface dmx.fun.Option
- zip3(Option, Option) - Method in interface dmx.fun.Option
-
Combines this
Optionwith two others into anOption<Tuple3>. - zip3(Result, Result, Result) - Static method in interface dmx.fun.Result
- zip3(Try, Try, Try) - Static method in interface dmx.fun.Try
- zip4(Option, Option, Option, Option) - Static method in interface dmx.fun.Option
- zip4(Option, Option, Option) - Method in interface dmx.fun.Option
-
Combines this
Optionwith three others into anOption<Tuple4>. - zip4(Result, Result, Result, Result) - Static method in interface dmx.fun.Result
- zip4(Try, Try, Try, Try) - Static method in interface dmx.fun.Try
- 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
mapperto the value inside thisOptionand pairs the original value with the result. - zipWith3(Option, Option, TriFunction) - Method in interface dmx.fun.Option
-
Combines this
Optionwith two others using aTriFunction. - zipWith3(Result, Result, Result, TriFunction) - Static method in interface dmx.fun.Result
-
Combines three
Resultvalues using aTriFunction. - zipWith3(Try, Try, Try, TriFunction) - Static method in interface dmx.fun.Try
-
Combines three
Tryvalues using aTriFunction. - zipWith4(Option, Option, Option, QuadFunction) - Method in interface dmx.fun.Option
-
Combines this
Optionwith three others using aQuadFunction. - zipWith4(Result, Result, Result, Result, QuadFunction) - Static method in interface dmx.fun.Result
-
Combines four
Resultvalues using aQuadFunction. - zipWith4(Try, Try, Try, Try, QuadFunction) - Static method in interface dmx.fun.Try
-
Combines four
Tryvalues using aQuadFunction.
_
- _1() - Method in record class dmx.fun.Tuple2
-
Returns the value of the
_1record component. - _1() - Method in record class dmx.fun.Tuple3
-
Returns the value of the
_1record component. - _1() - Method in record class dmx.fun.Tuple4
-
Returns the value of the
_1record component. - _2() - Method in record class dmx.fun.Tuple2
-
Returns the value of the
_2record component. - _2() - Method in record class dmx.fun.Tuple3
-
Returns the value of the
_2record component. - _2() - Method in record class dmx.fun.Tuple4
-
Returns the value of the
_2record component. - _3() - Method in record class dmx.fun.Tuple3
-
Returns the value of the
_3record component. - _3() - Method in record class dmx.fun.Tuple4
-
Returns the value of the
_3record component. - _4() - Method in record class dmx.fun.Tuple4
-
Returns the value of the
_4record component.
All Classes and Interfaces|All Packages|Serialized Form
Result.err(Object)with an explicit type witness or a typed variable instead:Result.<Value, Error>err(error)orResult<Value, Error> r = Result.err(error)