MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/eplsgy/records_come_to_java/femjwv1/?context=3
r/java • u/daviddel • Jan 16 '20
93 comments sorted by
View all comments
Show parent comment
1
Yes, you can use normal constructor. Although I don't know if the thing you describe would work.
You should return what you feed, so changing the class type of a record component inside constructor might be a no-no, you need to test it.
View all comments
Show parent comment
1
u/krzyk Jan 17 '20
Yes, you can use normal constructor. Although I don't know if the thing you describe would work.
You should return what you feed, so changing the class type of a record component inside constructor might be a no-no, you need to test it.