Index
All Classes and Interfaces|All Packages
A
- adapt(AdapterKey<From, To>, From) - Method in class com.guinetik.hexafun.HexaApp
-
Adapt a value using a type-safe adapter key.
- AdapterKey<From,
To> - Class in com.guinetik.hexafun.hexa -
Type-safe key for adapter registration and invocation.
- adapters - Variable in class com.guinetik.hexafun.HexaApp
- app - Variable in class com.guinetik.hexafun.hexa.UseCaseHandler
-
Reference to the HexaApp for port access.
- apply(I) - Method in interface com.guinetik.hexafun.hexa.UseCase
-
Apply the use case logic to the input and produce an output.
B
- build() - Method in class com.guinetik.hexafun.hexa.UseCaseBuilder
-
Build a HexaApp with all the registered use cases and ports.
C
- clear() - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Removes all entities from the repository.
- clear() - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- com.guinetik.hexafun - package com.guinetik.hexafun
- com.guinetik.hexafun.fun - package com.guinetik.hexafun.fun
- com.guinetik.hexafun.hexa - package com.guinetik.hexafun.hexa
- com.guinetik.hexafun.testing - package com.guinetik.hexafun.testing
- count() - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Counts the total number of entities in the repository.
- count() - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- create() - Static method in class com.guinetik.hexafun.HexaApp
-
Create a new empty HexaApp.
D
- deleteAllById(List<String>) - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Deletes multiple entities by their IDs in a batch operation.
- deleteAllById(List<String>) - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- deleteById(String) - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Deletes an entity by its unique identifier.
- deleteById(String) - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- doesNotHaveUseCase(String) - Method in class com.guinetik.hexafun.testing.HexaTest
-
Verify that a use case does not exist in the app.
- dsl() - Static method in class com.guinetik.hexafun.HexaFun
E
- equals(Object) - Method in class com.guinetik.hexafun.hexa.AdapterKey
- equals(Object) - Method in class com.guinetik.hexafun.hexa.UseCaseKey
- error() - Method in interface com.guinetik.hexafun.fun.Result
- error() - Method in class com.guinetik.hexafun.fun.Result.Failure
- error() - Method in class com.guinetik.hexafun.fun.Result.Success
- expect(Predicate<O>, String) - Method in class com.guinetik.hexafun.testing.UseCaseTest
-
Execute the use case and verify the result matches a predicate.
- expectException(Class<? extends Exception>) - Method in class com.guinetik.hexafun.testing.UseCaseTest
-
Execute the use case and verify it throws a specific exception.
- expectFailure(Consumer<String>) - Method in class com.guinetik.hexafun.testing.UseCaseTest
-
Execute the use case and verify the result is a failure.
- expectOk(Consumer<O>) - Method in class com.guinetik.hexafun.testing.UseCaseTest
-
Execute the use case and verify the result is successful.
F
- fail(String) - Static method in interface com.guinetik.hexafun.fun.Result
- Failure(String) - Constructor for class com.guinetik.hexafun.fun.Result.Failure
- findAll() - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Retrieves all entities from the repository.
- findAll() - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- findAll(int, int) - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Retrieves a paginated list of entities.
- findAll(int, int) - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- findBy(DirectoryStream.Filter<T>) - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Retrieves entities that match the given filter criteria.
- findBy(DirectoryStream.Filter<T>) - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- findById(String) - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Finds an entity by its unique identifier.
- findById(String) - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- flatMap(Function<T, Result<U>>) - Method in class com.guinetik.hexafun.fun.Result.Failure
- flatMap(Function<T, Result<U>>) - Method in interface com.guinetik.hexafun.fun.Result
- flatMap(Function<T, Result<U>>) - Method in class com.guinetik.hexafun.fun.Result.Success
- fold(Function<String, U>, Function<T, U>) - Method in class com.guinetik.hexafun.fun.Result.Failure
- fold(Function<String, U>, Function<T, U>) - Method in interface com.guinetik.hexafun.fun.Result
- fold(Function<String, U>, Function<T, U>) - Method in class com.guinetik.hexafun.fun.Result.Success
- forApp(HexaApp) - Static method in class com.guinetik.hexafun.testing.HexaTest
-
Create a new HexaTest for the given app.
G
- get() - Method in class com.guinetik.hexafun.fun.Result.Failure
- get() - Method in interface com.guinetik.hexafun.fun.Result
- get() - Method in class com.guinetik.hexafun.fun.Result.Success
H
- handle(UseCase<I, Result<O>>) - Method in class com.guinetik.hexafun.hexa.UseCaseValidationStep
-
Define the handler that runs after all validators pass.
- handle(UseCase<I, R>) - Method in class com.guinetik.hexafun.hexa.UseCaseInputStep
-
Define the core logic of the use case without validation.
- hasAdapter(AdapterKey<?, ?>) - Method in class com.guinetik.hexafun.HexaApp
-
Check if an adapter is registered for the given key.
- hashCode() - Method in class com.guinetik.hexafun.hexa.AdapterKey
- hashCode() - Method in class com.guinetik.hexafun.hexa.UseCaseKey
- hasPort(Class<?>) - Method in class com.guinetik.hexafun.hexa.UseCaseHandler
-
Check if a port is registered for the given type.
- hasPort(Class<?>) - Method in class com.guinetik.hexafun.HexaApp
-
Check if a port is registered for the given type.
- hasUseCase(String) - Method in class com.guinetik.hexafun.testing.HexaTest
-
Verify that a use case exists in the app.
- HexaApp - Class in com.guinetik.hexafun
-
Core container for a Hexagonal Architecture application.
- HexaApp() - Constructor for class com.guinetik.hexafun.HexaApp
- HexaAppImpl - Class in com.guinetik.hexafun
-
Default implementation of HexaApp.
- HexaAppImpl() - Constructor for class com.guinetik.hexafun.HexaAppImpl
-
Create a new empty HexaAppImpl.
- HexaFun - Class in com.guinetik.hexafun
- HexaRepo<T> - Interface in com.guinetik.hexafun.hexa
-
Generic repository interface for entity persistence operations.
- HexaTest - Class in com.guinetik.hexafun.testing
-
Entry point for the HexaFun testing DSL.
I
- InMemoryHexaRepo<T> - Class in com.guinetik.hexafun.hexa
-
Generic in-memory implementation of the HexaRepo interface.
- InMemoryHexaRepo() - Constructor for class com.guinetik.hexafun.hexa.InMemoryHexaRepo
-
Creates a new InMemoryHexaRepo with default behavior.
- InMemoryHexaRepo(Function<T, String>) - Constructor for class com.guinetik.hexafun.hexa.InMemoryHexaRepo
-
Creates a new InMemoryHexaRepo with default UUID generation.
- InMemoryHexaRepo(Function<T, String>, Function<T, T>) - Constructor for class com.guinetik.hexafun.hexa.InMemoryHexaRepo
-
Creates a new InMemoryHexaRepo with custom ID extraction and generation.
- invoke(UseCaseKey<I, O>, I) - Method in class com.guinetik.hexafun.HexaApp
-
Invoke a use case using a type-safe key.
- invokeByName(String, I) - Method in class com.guinetik.hexafun.HexaApp
-
Invoke a use case by name (for internal/testing use).
- isFailure() - Method in class com.guinetik.hexafun.fun.Result.Failure
- isFailure() - Method in interface com.guinetik.hexafun.fun.Result
- isFailure() - Method in class com.guinetik.hexafun.fun.Result.Success
- isSuccess() - Method in class com.guinetik.hexafun.fun.Result.Failure
- isSuccess() - Method in interface com.guinetik.hexafun.fun.Result
- isSuccess() - Method in class com.guinetik.hexafun.fun.Result.Success
M
- map(Function<O, T>) - Method in class com.guinetik.hexafun.testing.UseCaseTest
-
Map the result using a transformer function for further verification.
- map(Function<T, U>) - Method in class com.guinetik.hexafun.fun.Result.Failure
- map(Function<T, U>) - Method in interface com.guinetik.hexafun.fun.Result
- map(Function<T, U>) - Method in class com.guinetik.hexafun.fun.Result.Success
N
- name() - Method in class com.guinetik.hexafun.hexa.AdapterKey
-
Get the string name of this adapter key.
- name() - Method in class com.guinetik.hexafun.hexa.UseCaseKey
-
Get the string name of this use case key.
O
- of(String) - Static method in class com.guinetik.hexafun.hexa.AdapterKey
-
Create a new type-safe adapter key.
- of(String) - Static method in class com.guinetik.hexafun.hexa.UseCaseKey
-
Create a new type-safe use case key.
- ok(T) - Static method in interface com.guinetik.hexafun.fun.Result
P
- port(Class<T>) - Method in class com.guinetik.hexafun.hexa.UseCaseHandler
-
Convenience method to retrieve a port by its type.
- port(Class<T>) - Method in class com.guinetik.hexafun.HexaApp
-
Retrieve a port by its type.
- port(Class<T>, T) - Method in class com.guinetik.hexafun.HexaApp
-
Register a port (output adapter) by its type.
- ports - Variable in class com.guinetik.hexafun.HexaApp
R
- registeredAdapters() - Method in class com.guinetik.hexafun.HexaApp
-
Get all registered adapter names.
- registeredPorts() - Method in class com.guinetik.hexafun.HexaApp
-
Get all registered port types.
- registeredUseCases() - Method in class com.guinetik.hexafun.HexaApp
-
Get the names of all registered use cases.
- registeredUseCases() - Method in class com.guinetik.hexafun.HexaAppImpl
- Result<T> - Interface in com.guinetik.hexafun.fun
- Result.Failure<T> - Class in com.guinetik.hexafun.fun
- Result.Success<T> - Class in com.guinetik.hexafun.fun
- run() - Method in class com.guinetik.hexafun.HexaApp
-
Optional startup logic.
S
- save(T) - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Saves a single entity to the repository.
- save(T) - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- saveAll(List<T>) - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Saves multiple entities to the repository in a batch operation.
- saveAll(List<T>) - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- Success(T) - Constructor for class com.guinetik.hexafun.fun.Result.Success
T
- test(UseCaseKey<I, O>) - Method in class com.guinetik.hexafun.HexaApp
-
Start testing a use case using a type-safe key.
- test(String) - Method in class com.guinetik.hexafun.testing.HexaTest
-
Start a test for the specified use case.
- toString() - Method in class com.guinetik.hexafun.hexa.AdapterKey
- toString() - Method in class com.guinetik.hexafun.hexa.UseCaseKey
U
- update(String, T) - Method in interface com.guinetik.hexafun.hexa.HexaRepo
-
Updates an existing entity identified by its ID.
- update(String, T) - Method in class com.guinetik.hexafun.hexa.InMemoryHexaRepo
- useCase(UseCaseKey<I, O>) - Method in class com.guinetik.hexafun.hexa.UseCaseBuilder
-
Start defining a use case with a type-safe key.
- useCase(String) - Method in class com.guinetik.hexafun.testing.HexaTest
-
Start testing a use case.
- UseCase<I,
O> - Interface in com.guinetik.hexafun.hexa -
Core abstraction of business logic in Hexagonal Architecture.
- UseCaseBuilder - Class in com.guinetik.hexafun.hexa
-
Builder for creating HexaApp instances with use cases, ports, and adapters.
- UseCaseBuilder() - Constructor for class com.guinetik.hexafun.hexa.UseCaseBuilder
- UseCaseHandler<I,
O> - Class in com.guinetik.hexafun.hexa -
Abstract base class for use case handlers that need access to ports.
- UseCaseHandler(HexaApp) - Constructor for class com.guinetik.hexafun.hexa.UseCaseHandler
-
Creates a new handler with access to the given HexaApp.
- UseCaseInputStep<I,
O> - Class in com.guinetik.hexafun.hexa -
Builder step for defining the input handling of a use case.
- UseCaseInputStep(String, UseCaseBuilder) - Constructor for class com.guinetik.hexafun.hexa.UseCaseInputStep
- UseCaseKey<I,
O> - Class in com.guinetik.hexafun.hexa -
Type-safe key for use case registration and invocation.
- useCases - Variable in class com.guinetik.hexafun.HexaApp
- UseCaseTest<I,
O> - Class in com.guinetik.hexafun.testing -
A fluent API for testing HexaFun use cases.
- UseCaseValidationStep<I> - Class in com.guinetik.hexafun.hexa
-
Builder step for defining validation and handler logic.
- UseCaseValidationStep(String, UseCaseBuilder, ValidationPort<I>) - Constructor for class com.guinetik.hexafun.hexa.UseCaseValidationStep
V
- validate(ValidationPort<I>) - Method in class com.guinetik.hexafun.hexa.UseCaseInputStep
-
Add a validation step before the handler.
- validate(ValidationPort<I>) - Method in class com.guinetik.hexafun.hexa.UseCaseValidationStep
-
Add another validator to the chain.
- validate(I) - Method in interface com.guinetik.hexafun.hexa.ValidationPort
-
Validate input data and return a result.
- ValidationPort<I> - Interface in com.guinetik.hexafun.hexa
-
Port for validating input data before processing by a use case.
W
- with(I) - Method in class com.guinetik.hexafun.testing.UseCaseTest
-
Specify the input for the use case.
- withAdapter(AdapterKey<From, To>, Function<From, To>) - Method in class com.guinetik.hexafun.hexa.UseCaseBuilder
-
Register an adapter with a type-safe key.
- withAdapter(AdapterKey<From, To>, Function<From, To>) - Method in class com.guinetik.hexafun.HexaApp
-
Register an adapter with a type-safe key.
- withAdapter(String, Function<From, To>) - Method in class com.guinetik.hexafun.HexaApp
-
Register an adapter by name (used internally by builder).
- withPort(Class<T>, T) - Method in class com.guinetik.hexafun.hexa.UseCaseBuilder
-
Register a port (output adapter) by its type.
- withUseCase(UseCaseKey<I, O>, UseCase<I, O>) - Method in class com.guinetik.hexafun.HexaApp
-
Add a use case using a type-safe key.
- withUseCase(String, UseCase<I, O>) - Method in class com.guinetik.hexafun.HexaApp
-
Add a use case to this HexaApp (used internally by builder).
All Classes and Interfaces|All Packages