Skip to content

jayo-projects/jayo-result

Repository files navigation

License Version Java

Jayo Result

Since the JVM doesn't provide its own buitin Result type yet, Jayo Result provides a Java port of the Result<T> type from the Kotlin stdlib.

If by any chance the JVM provides a Result<T> type in an upcoming release, that would be a good candidate to be a Valhalla's value class, this API would then be adapted to match it.

It is available on Maven Central.

Gradle:

dependencies {
    implementation("dev.jayo:jayo-result:X.Y.Z")
}

Maven:

<dependency>
    <groupId>dev.jayo</groupId>
    <artifactId>jayo-result</artifactId>
    <version>X.Y.Z</version>
</dependency>

The Jayo Result code is written in Java without the use of any external dependencies, to be as light as possible.

Jayo Result requires Java 11 or more recent.

Contributions are very welcome, simply clone this repo and submit a PR when your fix, new feature, or optimization is ready!

License

Apache-2.0

Copyright (c) 2026-present, pull-vert and Jayo contributors

About

Jayo Result is a Java port of the Result<T> type from the Kotlin stdlib

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages