-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Java 14+ records #1484
Comments
We're planning to add quite full support for records. Most probably it will be Immutables 3 . But there's the way now, using record Uio(
int x,
String b,
boolean z
) {
@Builder.Constructor Uio {}
}
var b = new UioBuilder()
.x(4)
.b("xx")
.z(true)
.build(); |
Can't wait to see this in a release! |
Would it be possible to also have |
record
s are immutable by their very definition, I want to use@Value.Immutable
annotation with them. That's because one delightful feature that@Value.Immutable
annotation provides for conventional Javainterface
s andabstract class
es is the builder-methods that enable graceful object construction, especially DTOs within multiple fields including severalOptional
srecord
classSo then are there any plans to support
@Value.Immutable
annotation for Javarecord
s and by when?The text was updated successfully, but these errors were encountered: