/vavr

VΛVΓ (Vavr, formerly called Javaslang) is a non-commercial, non-profit object-functional library that runs with Java 8+. It aims to reduce the lines of code and increase code quality.

Primary LanguageJavaApache License 2.0Apache-2.0

Maven Central Build Status codecov Gitter Chat

Vavr is an object-functional language extension to Java 11, which aims to increase code quality and readability. It provides persistent collections, functional abstractions for error handling, concurrent programming, pattern matching and much more.

To stay up to date please follow the blog.


Prerequisites:

  • Vavr 1.x runs with Java 11 and is completely modularized (JPMS conform). It runs also on the classpath.
  • Java 8 users are able to fall back to Vavr 0.9.

Using Vavr

Starting with v1, Vavr is available on JCenter and Maven Central. Vavr v0.9 is available on Maven Central.

Gradle

dependencies {
    compile "io.vavr:vavr-control:1.0.0-alpha-1"
}

Maven

<dependencies>
    <dependency>
        <groupId>io.vavr</groupId>
        <artifactId>vavr-control</artifactId>
        <version>1.0.0-alpha-1</version>
    </dependency>
</dependencies>

Developers, please note that the previous version Vavr 0.9 was moved to the branch v0.9.x and master was replaced with v1.0, which is a complete rewrite.