immutables-vavr
immutables-vavr copied to clipboard
Immutables encodings for Vavr
I am creating an Immutable POJO object which needs to support an `@Nullable` Vector and the toString(), equals() and hashCode() methods are throwing NPEs because they assume the vector will...
@Value.Default with Option fields throws NullPointerException: ``` @Value.Default public Option getFoo() { return Option.some("foo"); } ``` ``` error: org.immutables.value.internal.$processor$.$Processor threw java.lang.NullPointerException at org.immutables.value.internal.$processor$.encode.$Instantiation$6.invoke($Instantiation.java:305) at org.immutables.value.internal.$generator$.$Intrinsics.$($Intrinsics.java:96) at org.immutables.value.internal.$processor$.encode.$Generator_Renderers._t26__wasInit($Generator_Renderers.java:845) at org.immutables.value.internal.$processor$.encode.$Generator_Renderers$FragmentDispatch.run($Generator_Renderers.java:1167) ```...
Thanks a lot for the vavr encoding, they're helping the the transition from javaslang to vavr a lot! 👍 `Option` fields inside builders marked as `stagedBuilder=true` does not have appropriate...
`VavrMapEncoding` adds `Entry` prefix for tuple related operations. Current solution has some drawbacks: - it isn't configurable - it isn't consistent with immutables encoding ( it generates `putBar(Map.Entry
These encodings will need to be updated. The `1.0.0` release will not be backwards compatible with previous `vavr` versions (they've removed a few collections classes).
Can we add customized with methods as explained in the [immutables docs: "Customize with methods"](http://immutables.github.io/encoding.html#customize-with-methods)? e.g. for a `Set` we could add `with` methods like these: ``` public final ImmutableExampleSetType...
Provide builder methods that allow for setting the left and right values of `Either`-typed attributes.