Records, Not Just Constant Classes, A Deep Dive
Presented by Manoj N Palat (IBM) at EclipseCon 2022.
The standard feature of Records is a convenient way to represent constant classes. Though the use of this has not reached the full potential, this feature is quite a useful one even in standalone cases. This talk will discuss the feature of Records from the concept through implementation with actual code examples. Records also bring along with it the concept of “Compact Constructor”, “Canonical Constructor”, “Components”, dos and don’ts in initializations and so on and so forth. Talk will discuss these in detail so that it will render the programmer more effective while using this feature.
Records do get generated into classes only in the byte code albeit with some special attribute. IT also uses the bootstrap mechanism which is now becoming de-facto in the recent features. Talk will discuss these briefly as well. Additionally, records are becoming an integrated part of the patterns which will also be discussed taking into account how record patterns would emerge with records.
Fair amount of Java programming is the only pre-requisite for the attendees. No familiarity with byte code is assumed.
Attendees would be able to
understand records in details - what, how and where to use them.
Learn about the new terms and concepts along-with records – compact constructor, canonical constructor, components, etc.
Understand how records fit into the big picture.
Objective of the presentation:
Records is now a standard feature in Java. Although they are described as constant classes, in reality its much more. And it is going to become an integral part of the pattern paradigm soon. Talk will start with the concepts and do a deep dive into the Records at the design and code level and provide the programmer necessary information as to how, when and where to use this feature. Talk will also discuss the role records are going to play to complete the pattern story in Java.