immutables-pcollections
A set of Immutables encodings for PCollections.
Include the encodings in your project:
<dependency>
<groupId>com.github.thirdteeth</groupId>
<artifactId>pcollections-encodings</artifactId>
<version>0.1.4</version>
</dependency>
Annotate your types with @PCollectionsEncodingEnabled
. Alternatively, you can annotate a @Style
annotation with @PCollectionsEncodingEnabled
and have it apply to any types that are using that style. See Styles.
Now, any use of PCollections 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.