Skip to content

Result 0.1.0

Choose a tag to compare

@Joseevb Joseevb released this 06 Sep 12:26
· 58 commits to master since this release

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 with Ok and Err
  • Mapping and composition with map, mapErr, andThen, combine, and flatten
  • Recovery with recover and recoverWith
  • Inspection and folding with inspect, inspectErr, and fold
  • Exception capture with Result.from(...), catching Exception without swallowing Error
  • Optional, stream, sequencing, and collecting utilities
  • Validator and typed error-routing utilities
  • Spring Boot integration with Failure and RFC 9457 ProblemDetail responses
  • Transactional rollback support when a @Transactional method returns a final Result.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 @Transactional support for Result.Err by @Joseevb in #19

Full Changelog: https://github.com/Joseevb/Result/commits/v0.1.0