____ ______________ ________________________ __________
\ \/ / \ \/ / __/ / \ \/ / \
\______/___/\___\______/___/_____/___/\___\______/___/\___\
Vavr is an object-functional extension for Java that makes defensive programming easy by leveraging immutability and functional control structures
Vavr seamlessly combines object-oriented programming with the elegance and robustness of functional programming.
It provides: * persistent collections * functional abstractions for error handling, concurrent programming * pattern matching * ...and more
Since Vavr has no dependencies beyond the JVM, you can easily add it as a standalone .jar to your classpath.
Led and maintained by @pivovarit
<dependency>
<groupId>io.vavr</groupId>
<artifactId>vavr</artifactId>
<version>0.10.7</version>
</dependency>
implementation 'io.vavr:vavr:0.10.7'
See User Guide and/or Javadoc.
mvn clean testmvn javadoc:javadocmvn -P ci clean test jacoco:reportmvn javadoc:jarmvn source:jarCurrently, there are two significant branches:
- main (represents a stream of work leading to the release of a new major version)
- version/1.x (historical work that went into 1.0.0-alpha-3, treat it as read-only - will be kept around for cherry-picking)
A small number of users have reported problems building Vavr. Read our contribution guide for details.