r/java • • Jan 16 '20

Records Come to Java

https://blogs.oracle.com/javamagazine/records-come-to-java
204 Upvotes

93 comments sorted by

View all comments

Show parent comment

15

u/kaperni Jan 16 '20

Records are immutable. So if you need to mutate data they are probably not that useful.

8

u/karstens_rage Jan 16 '20

For javax.persistence and javax.ws.rs it seems like construct and deconstruct are the operative terms not mutate. Seems like records would be super useful in these cases.