8000 GitHub - alexmera/immutables-vavr: Immutables encodings for Vavr · GitHub
[go: up one dir, main page]

Skip to content

About

Immutables encodings for Vavr

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

immutables-vavr

Build Status Download

A set of Immutables encodings for Vavr.

NOTE: This project is forked from immutables/immutables-javaslang and migrate from the (old) Javaslang distribution to the new Vavr brand.

Ten Second Tutorial

Include the encodings in your project:

<dependency>
  <groupId>org.immutables.vavr</groupId>
  <artifactId>vavr-encodings</artifactId>
  <version>0.1.1</version>
  <scope>provided</scope>
</dependency>

Annotate your types with @VavrEncodingEnabled. Alternatively, you can annotate a @Style annotation with @VavrEncodingEnabled and have it apply to any types that are using that style. See Styles.

Now, any use of Vavr collections in your abstract value types will magically result in the generated Builder types being augmented with methods to build immutable collections element-by-element. Use of Vavr's Option type will receive the same special treatment as the standard Java Optional type.

About

Immutables encodings for Vavr

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0