Module dmx.fun
module dmx.fun
Functional programming constructions for Java.
Provides the core monadic types:
Option— represents an optional valueResult— represents a value or an errorEither— neutral disjoint union of two value typesTry— represents a computation that may throwValidated— error-accumulating validation typeCheckedSupplier— supplier that may throw checked exceptionsCheckedRunnable— runnable that may throw checked exceptionsCheckedFunction— function that may throw checked exceptionsCheckedConsumer— consumer that may throw checked exceptionsTuple2— an immutable pair of two valuesTuple3— immutable triple of three valuesTuple4— immutable quadruple of four valuesTriFunction— function accepting three argumentsQuadFunction— function accepting four argumentsLazy— lazily evaluated, memoized valueNonEmptyList— list guaranteed to contain at least one elementNonEmptyMap— map guaranteed to contain at least one entryNonEmptySet— set guaranteed to contain at least one elementGuard— composable predicate blocks for Validated pipelinesResource— composable managed resource with guaranteed releaseAccumulator— value paired with a side-channel accumulation (Writer monad)
The entire module is @NullMarked: all API types are non-null by default.
-
Packages
Exports