Conventions
The code examples in this book are in Java. Even as a Java fanboy, I will admit that Java is a very verbose programming language. Since I don't want you to be distracted by boilerplate code within the code examples, I decided to just leave it out. In order for the code to still be valid, I included Lombok (https://projectlombok.org) annotations in the code that will autogenerate some boilerplate code:
- The @Getter annotation will autogenerate getter methods for the annotated field or, if used on a class, on all private fields of that class.
- The @RequiredArgsConstructor annotation will autogenerate a constructor with parameters to initialize all private final fields of a class.
- The @NoArgsConstructor annotation will autogenerate a no-argument (default) constructor.