Summary
The goal of this chapter was to deeply cover Java records and record patterns. We have assigned the same importance to both the theoretical and the practical parts so that, in the end, there are no secrets regarding the use of these two topics. And, just in case you wonder why we didn’t cover the topic regarding record patterns appearing in the header of an enhanced for
statement, then please notice that this was added as a preview in JDK 20 but it was removed in JDK 21. This feature may be re-proposed in a future JEP.
Leave a review!
Enjoying this book? Help readers like you by leaving an Amazon review. Scan the QR code below for a 20% discount code.
*Limited Offer