Result 0.1.0
Result 0.1.0
First public release of Result, a small Java 25 library for explicit, typed success and failure values.
Highlights
Result<T, E>sealed type withOkandErr- Mapping and composition with
map,mapErr,andThen,combine, andflatten - Recovery with
recoverandrecoverWith - Inspection and folding with
inspect,inspectErr, andfold - Exception capture with
Result.from(...), catchingExceptionwithout swallowingError - Optional, stream, sequencing, and collecting utilities
Validatorand typed error-routing utilities- Spring Boot integration with
Failureand RFC 9457ProblemDetailresponses - Transactional rollback support when a
@Transactionalmethod returns a finalResult.Err - Published to Maven Central
Gradle
dependencies {
implementation("io.github.joseevb:result-core:0.1.0")
}For Spring Boot integration
dependencies {
implementation("io.github.joseevb:result-springboot:0.1.0")
}Maven
<dependency>
<groupId>io.github.joseevb</groupId>
<artifactId>result-core</artifactId>
<version>0.1.0</version>
</dependency>For Spring Boot integration
<dependency>
<groupId>io.github.joseevb</groupId>
<artifactId>result-springboot</artifactId>
<version>0.1.0</version>
</dependency>Requires Java 25.
What's Changed
- Enable Gradle configuration cache by @Joseevb in #20
- Add
@Transactionalsupport for Result.Err by @Joseevb in #19
Full Changelog: https://github.com/Joseevb/Result/commits/v0.1.0