Index

C E F G H I M N O P R S T V Z _ 
All Classes and Interfaces|All Packages

C

cause() - Method in record class codes.domix.fun.Try.Failure
Returns the value of the cause record component.
codes.domix.fun - module codes.domix.fun
Functional programming constructions for Java.
codes.domix.fun - package codes.domix.fun
 
collectPresent(Stream<Option<V>>) - Static method in interface codes.domix.fun.Option
Collects all present (non-empty) values from a stream of Option instances into a list.

E

equals(Object) - Method in record class codes.domix.fun.Option.None
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class codes.domix.fun.Option.Some
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class codes.domix.fun.Result.Err
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class codes.domix.fun.Result.Ok
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class codes.domix.fun.Try.Failure
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class codes.domix.fun.Try.Success
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class codes.domix.fun.Tuple2
Indicates whether some other object is "equal to" this one.
err(Error) - Static method in interface codes.domix.fun.Result
Creates a Result instance representing an erroneous result with the given error value.
err(Error, Class<Value>) - Static method in interface codes.domix.fun.Result
Deprecated, for removal: This API element is subject to removal in a future version.
This overload exists only as a type-inference aid and is no longer needed. Use Result.err(Object) with an explicit type witness or a typed variable instead: Result.<Value, Error>err(error) or Result<Value, Error> r = Result.err(error)
Err(Error) - Constructor for record class codes.domix.fun.Result.Err
Compact canonical constructor — validates that error is non-null.
error() - Method in record class codes.domix.fun.Result.Err
Returns the value of the error record component.

F

failure(Throwable) - Static method in interface codes.domix.fun.Try
Creates a Try instance representing a failure with the given cause.
Failure(Throwable) - Constructor for record class codes.domix.fun.Try.Failure
Compact canonical constructor — validates that cause is non-null.
filter(Predicate<? super Value>) - Method in interface codes.domix.fun.Option
Filters the value of this Option based on the provided predicate.
filter(Predicate<? super Value>) - Method in interface codes.domix.fun.Try
Filters the Try based on the given predicate.
filter(Predicate<? super Value>, Function<? super Value, ? extends Throwable>) - Method in interface codes.domix.fun.Try
Filters this Try using a predicate and a contextual error function that receives the value that failed the test.
filter(Predicate<? super Value>, Supplier<? extends Throwable>) - Method in interface codes.domix.fun.Try
Filters the Try based on the given predicate.
filter(Predicate<Value>, Error) - Method in interface codes.domix.fun.Result
Filters the current result based on the specified predicate.
filter(Predicate<Value>, Function<Value, Error>) - Method in interface codes.domix.fun.Result
Filters the current result by applying a given predicate to its value.
flatMap(Function<? super Value, Option<NewValue>>) - Method in interface codes.domix.fun.Option
Transforms the current Option value using the provided mapping function and flattens the result.
flatMap(Function<? super Value, Try<NewValue>>) - Method in interface codes.domix.fun.Try
Applies the provided mapping function to the value contained within this `Try` instance if it represents a successful outcome.
flatMap(Function<Value, Result<NewValue, Error>>) - Method in interface codes.domix.fun.Result
Applies the given mapping function to the value of a successful Result instance and returns the resulting Result.
flatMapError(Function<Error, Result<Value, E2>>) - Method in interface codes.domix.fun.Result
Applies a function to the error of an erroneous result and returns the produced Result.
fold(Function<? super Value, ? extends Folded>, Function<? super Throwable, ? extends Folded>) - Method in interface codes.domix.fun.Try
Folds the current Try instance into a single value by applying one of two provided functions.
fold(Function<Value, Folded>, Function<Error, Folded>) - Method in interface codes.domix.fun.Result
Transforms the current Result instance into a value of type Folded by applying one of the provided functions based on the state of the instance.
fold(Supplier<? extends Folded>, Function<? super Value, ? extends Folded>) - Method in interface codes.domix.fun.Option
Folds the current option into a single value by applying the appropriate function depending on whether the option is a Some or a None.
fromOption(Option<? extends V>, E) - Static method in interface codes.domix.fun.Result
Converts an Option to a Result.
fromOption(Option<? extends V>, Supplier<? extends Throwable>) - Static method in interface codes.domix.fun.Try
Converts an Option to a Try.
fromOptional(Optional<V>) - Static method in interface codes.domix.fun.Option
Converts a given Optional instance into an Option instance.
fromResult(Result<? extends V, ? extends E>) - Static method in interface codes.domix.fun.Option
Converts a Result into an Option.
fromResult(Result<V, ? extends Throwable>) - Static method in interface codes.domix.fun.Try
Converts a Result into a Try instance.
fromTry(Try<? extends V>) - Static method in interface codes.domix.fun.Option
Converts a Try instance into an Option.
fromTry(Try<V>) - Static method in interface codes.domix.fun.Result
Converts a Try instance into a Result instance.

G

get() - Method in interface codes.domix.fun.Option
Retrieves the value held by this Option instance if it is of type Some.
get() - Method in interface codes.domix.fun.Result
Retrieves the value contained within this Result instance if it represents a successful result.
get() - Method in interface codes.domix.fun.Try.CheckedSupplier
Retrieves and returns a value, potentially throwing a checked exception during execution.
get() - Method in interface codes.domix.fun.Try
Retrieves the value encapsulated in this instance if it represents a success.
getCause() - Method in interface codes.domix.fun.Try
Retrieves the cause of failure if the instance represents a failed state.
getError() - Method in interface codes.domix.fun.Result
Retrieves the error value of the current instance if it is an Err.
getOrElse(Value) - Method in interface codes.domix.fun.Option
Retrieves the encapsulated value if this Option instance is of type Some, or returns the provided fallback value if this instance is of type None.
getOrElse(Value) - Method in interface codes.domix.fun.Result
Returns the value contained in this Result instance if it represents a successful result.
getOrElse(Value) - Method in interface codes.domix.fun.Try
Returns the value if this instance is a Success, or the specified fallback value if it is a Failure.
getOrElseGet(Supplier<? extends Value>) - Method in interface codes.domix.fun.Option
Retrieves the encapsulated value if this Option instance is of type Some, or computes and returns a fallback value supplied by the given fallbackSupplier if this instance is of type None.
getOrElseGet(Supplier<? extends Value>) - Method in interface codes.domix.fun.Try
Returns the value of this Try if it is a Success, or retrieves a fallback value using the provided fallbackSupplier if it is a Failure.
getOrElseGet(Supplier<Value>) - Method in interface codes.domix.fun.Result
Retrieves the value contained within this Result instance if it represents a successful result.
getOrElseGetWithError(Function<Error, Value>) - Method in interface codes.domix.fun.Result
Returns the value of this Ok, or applies errorMapper to the contained error and returns the result.
getOrNull() - Method in interface codes.domix.fun.Option
Retrieves the encapsulated value if this Option instance is of type Some, or returns null if this instance is of type None.
getOrNull() - Method in interface codes.domix.fun.Result
Retrieves the value contained within this Result instance if it represents a successful result, or returns null if it represents an erroneous result.
getOrNull() - Method in interface codes.domix.fun.Try
Returns the value of this Try if it is a Success, or null if it is a Failure.
getOrThrow() - Method in interface codes.domix.fun.Try
Returns the successful value if this instance is a Success, or throws an exception if this instance is a Failure.
getOrThrow(Function<? super Throwable, ? extends RuntimeException>) - Method in interface codes.domix.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<Error, ? extends RuntimeException>) - Method in interface codes.domix.fun.Result
Retrieves the value of the current Result instance if it represents a successful result, or throws a custom exception mapped from the contained error if it represents an erroneous result.
getOrThrow(Supplier<? extends RuntimeException>) - Method in interface codes.domix.fun.Option
Retrieves the encapsulated value if this Option instance is of type Some.

H

hashCode() - Method in record class codes.domix.fun.Option.None
Returns a hash code value for this object.
hashCode() - Method in record class codes.domix.fun.Option.Some
Returns a hash code value for this object.
hashCode() - Method in record class codes.domix.fun.Result.Err
Returns a hash code value for this object.
hashCode() - Method in record class codes.domix.fun.Result.Ok
Returns a hash code value for this object.
hashCode() - Method in record class codes.domix.fun.Try.Failure
Returns a hash code value for this object.
hashCode() - Method in record class codes.domix.fun.Try.Success
Returns a hash code value for this object.
hashCode() - Method in record class codes.domix.fun.Tuple2
Returns a hash code value for this object.

I

isDefined() - Method in interface codes.domix.fun.Option
Determines whether this instance represents a defined value.
isEmpty() - Method in interface codes.domix.fun.Option
Checks if this Option instance represents the absence of a value.
isError() - Method in interface codes.domix.fun.Result
Checks if the current instance represents an erroneous result.
isFailure() - Method in interface codes.domix.fun.Try
Determines if the current instance represents a failure state.
isOk() - Method in interface codes.domix.fun.Result
Checks if the current instance represents a successful result.
isSuccess() - Method in interface codes.domix.fun.Try
Determines if the current instance represents a successful state.

M

map(Function<? super Value, ? extends NewValue>) - Method in interface codes.domix.fun.Option
Transforms the current Option using the provided mapping function.
map(Function<? super Value, ? extends NewValue>) - Method in interface codes.domix.fun.Try
Transforms the value held by this instance using the provided mapping function.
map(Function<Value, NewValue>) - Method in interface codes.domix.fun.Result
Transforms the value of a successful Result instance using the provided mapping function.
map2(Option<? extends A>, Option<? extends B>, BiFunction<? super A, ? super B, ? extends R>) - Static method in interface codes.domix.fun.Option
Combines the values of two Option instances using the provided combiner function.
mapError(Function<Error, NewError>) - Method in interface codes.domix.fun.Result
Transforms the error value of an erroneous Result instance using the provided mapping function.
mapFailure(Function<? super Throwable, ? extends Throwable>) - Method in interface codes.domix.fun.Try
Transforms the failure cause using the given function, leaving a Success unchanged.
match(Runnable, Consumer<? super Value>) - Method in interface codes.domix.fun.Option
Executes one of the provided actions based on the state of this value.
match(Consumer<Value>, Consumer<Error>) - Method in interface codes.domix.fun.Result
Executes one of the provided Consumer functions based on the state of the Result.

N

none() - Static method in interface codes.domix.fun.Option
Creates an instance of Option that represents the absence of a value.
None() - Constructor for record class codes.domix.fun.Option.None
Creates an instance of a None record class.

O

of(Try.CheckedSupplier<? extends V>) - Static method in interface codes.domix.fun.Try
Creates a Try instance by executing the given CheckedSupplier.
ofNullable(V) - Static method in interface codes.domix.fun.Option
Creates an Option instance that encapsulates a given value.
ok(Value) - Static method in interface codes.domix.fun.Result
Creates a Result instance representing a successful result with the given value.
ok(Value, Class<Error>) - Static method in interface codes.domix.fun.Result
Deprecated, for removal: This API element is subject to removal in a future version.
This overload exists only as a type-inference aid and is no longer needed. Use Result.ok(Object) with an explicit type witness or a typed variable instead: Result.<Value, Error>ok(value) or Result<Value, Error> r = Result.ok(value)
Ok(Value) - Constructor for record class codes.domix.fun.Result.Ok
Compact canonical constructor — validates that value is non-null.
onFailure(Consumer<? super Throwable>) - Method in interface codes.domix.fun.Try
Executes a specified action if this instance represents a failure.
onSuccess(Consumer<? super Value>) - Method in interface codes.domix.fun.Try
Performs the given action if the current instance represents a successful outcome.
Option<Value> - Interface in codes.domix.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 codes.domix.fun
Represents a variant of the Option type that signifies the absence of a value.
Option.Some<Value> - Record Class in codes.domix.fun
Represents a container object that holds a non-null value.
or(Supplier<Result<Value, Error>>) - Method in interface codes.domix.fun.Result
Returns this Result if it is Ok; otherwise evaluates the given supplier and returns its result.

P

peek(Consumer<? super Value>) - Method in interface codes.domix.fun.Option
Applies the provided action to the value contained in this instance if it is of type Some.
peek(Consumer<Value>) - Method in interface codes.domix.fun.Result
Executes the given action if the current Result instance represents a successful result.
peekError(Consumer<Error>) - Method in interface codes.domix.fun.Result
Executes the given action if the current Result instance represents an erroneous result.
presentValuesToList() - Static method in interface codes.domix.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.

R

recover(Function<? super Throwable, ? extends Value>) - Method in interface codes.domix.fun.Try
Recovers from a failure by applying a recovery function to the underlying throwable.
recover(Function<Error, Value>) - Method in interface codes.domix.fun.Result
Converts an erroneous Result into a successful one by applying the given rescue function to the contained error.
recoverWith(Function<? super Throwable, Try<Value>>) - Method in interface codes.domix.fun.Try
Recovers from a failure by applying the given recovery function to the cause of the failure.
recoverWith(Function<Error, Result<Value, E2>>) - Method in interface codes.domix.fun.Result
Converts an erroneous Result into a new Result by applying the given rescue function to the contained error.
Result<Value,Error> - Interface in codes.domix.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 codes.domix.fun
Represents an erroneous result containing an error of type Error.
Result.Ok<Value,Error> - Record Class in codes.domix.fun
Represents a successful result containing a value of type Value.
run() - Method in interface codes.domix.fun.Try.CheckedRunnable
Executes an operation that may throw a checked exception.
run(Try.CheckedRunnable) - Static method in interface codes.domix.fun.Try
Executes the provided CheckedRunnable and returns a Try instance representing the outcome of the execution.

S

sequence(Iterable<Option<V>>) - Static method in interface codes.domix.fun.Option
Transforms an iterable of Option<V> into a single Option<List<V>>.
sequence(Iterable<Result<V, E>>) - Static method in interface codes.domix.fun.Result
Transforms an iterable of Result<V, E> into a single Result<List<V>, E>.
sequence(Iterable<Try<V>>) - Static method in interface codes.domix.fun.Try
Transforms an iterable of Try<V> into a single Try<List<V>>.
sequence(Stream<Option<V>>) - Static method in interface codes.domix.fun.Option
Converts a stream of Option objects into a single Option containing a List of values, if all Option instances in the stream are Option.Some.
sequence(Stream<Result<V, E>>) - Static method in interface codes.domix.fun.Result
Transforms a stream of Result<V, E> into a single Result<List<V>, E>.
sequence(Stream<Try<V>>) - Static method in interface codes.domix.fun.Try
Transforms a stream of Try<V> into a single Try<List<V>>.
some(V) - Static method in interface codes.domix.fun.Option
Creates a Option.Some instance that encapsulates the given non-null value.
Some(Value) - Constructor for record class codes.domix.fun.Option.Some
Constructs a new Some instance with the specified non-null value.
stream() - Method in interface codes.domix.fun.Option
Returns a stream representation of the current instance.
stream() - Method in interface codes.domix.fun.Try
Returns a single-element Stream containing the success value, or an empty stream on failure.
success(V) - Static method in interface codes.domix.fun.Try
Creates a successful Try instance containing the provided value.
Success(Value) - Constructor for record class codes.domix.fun.Try.Success
Creates an instance of a Success record class.
swap() - Method in interface codes.domix.fun.Result
Swaps the Ok and Err channels of this Result.

T

toOption() - Method in interface codes.domix.fun.Result
Converts the current instance into an Option<Value>.
toOption() - Method in interface codes.domix.fun.Try
Converts the current instance to an Option.
toOptional() - Method in interface codes.domix.fun.Option
Converts the current instance of a value or none container into an Optional.
toResult() - Method in interface codes.domix.fun.Try
Converts the current Try instance into a Result representation.
toResult(Function<? super Throwable, ? extends E>) - Method in interface codes.domix.fun.Try
Converts this Try into a Result<Value, E> using a custom error mapper.
toResult(TError) - Method in interface codes.domix.fun.Option
Converts the current option to a Result instance.
toString() - Method in record class codes.domix.fun.Option.None
Returns a string representation of this record class.
toString() - Method in record class codes.domix.fun.Option.Some
Returns a string representation of this record class.
toString() - Method in record class codes.domix.fun.Result.Err
Returns a string representation of this record class.
toString() - Method in record class codes.domix.fun.Result.Ok
Returns a string representation of this record class.
toString() - Method in record class codes.domix.fun.Try.Failure
Returns a string representation of this record class.
toString() - Method in record class codes.domix.fun.Try.Success
Returns a string representation of this record class.
toString() - Method in record class codes.domix.fun.Tuple2
Returns a string representation of this record class.
toTry(Function<? super Error, ? extends Throwable>) - Method in interface codes.domix.fun.Result
Converts the current result into a Try instance.
toTry(Supplier<? extends Throwable>) - Method in interface codes.domix.fun.Option
Converts the current instance to a Try instance.
traverse(Iterable<A>, Function<? super A, Option<B>>) - Static method in interface codes.domix.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<A>, Function<? super A, Result<B, E>>) - Static method in interface codes.domix.fun.Result
Maps each element of an iterable through mapper and collects the results into a Result<List<B>, E>.
traverse(Iterable<A>, Function<? super A, Try<B>>) - Static method in interface codes.domix.fun.Try
Maps each element of an iterable through mapper and collects the results into a Try<List<B>>.
traverse(Stream<A>, Function<? super A, Option<B>>) - Static method in interface codes.domix.fun.Option
Transforms a stream of values by applying a mapper function that returns an Option for each input value.
traverse(Stream<A>, Function<? super A, Result<B, E>>) - Static method in interface codes.domix.fun.Result
Maps each element of a stream through mapper and collects the results into a Result<List<B>, E>.
traverse(Stream<A>, Function<? super A, Try<B>>) - Static method in interface codes.domix.fun.Try
Maps each element of a stream through mapper and collects the results into a Try<List<B>>.
Try<Value> - Interface in codes.domix.fun
A monadic type that represents a computation that may either result in a value (Try.Success) or throw an exception (Try.Failure).
Try.CheckedRunnable - Interface in codes.domix.fun
Functional interface for runnables that can throw checked exceptions.
Try.CheckedSupplier<T> - Interface in codes.domix.fun
A functional interface representing a supplier that can produce a value and may throw a checked exception.
Try.Failure<Value> - Record Class in codes.domix.fun
Represents a computational failure within a context that implements the Try interface.
Try.Success<Value> - Record Class in codes.domix.fun
Represents a successful computation result within the Try monad pattern.
Tuple2<A,B> - Record Class in codes.domix.fun
An immutable tuple holding two values of potentially different types.
Tuple2(A, B) - Constructor for record class codes.domix.fun.Tuple2
Creates an instance of a Tuple2 record class.

V

value() - Method in record class codes.domix.fun.Option.Some
Returns the value of the value record component.
value() - Method in record class codes.domix.fun.Result.Ok
Returns the value of the value record component.
value() - Method in record class codes.domix.fun.Try.Success
Returns the value of the value record component.

Z

zip(Option<? extends A>, Option<? extends B>) - Static method in interface codes.domix.fun.Option
Combines two Option instances into a single Option containing a Tuple2 of the values if both options are non-empty.
zip(Option<? extends B>) - Method in interface codes.domix.fun.Option
Combines the current Option instance with another Option instance into a single Option containing a Tuple2 of their values, if both options are non-empty.
zipWith(Option<? extends B>, BiFunction<? super Value, ? super B, ? extends R>) - Method in interface codes.domix.fun.Option
Combines the values of this Option with the values of another Option using a provided combining function.

_

_1() - Method in record class codes.domix.fun.Tuple2
Returns the value of the _1 record component.
_2() - Method in record class codes.domix.fun.Tuple2
Returns the value of the _2 record component.
C E F G H I M N O P R S T V Z _ 
All Classes and Interfaces|All Packages