Writing a class with fields in Java can be really annoying at times. Not only do you have to define the fields, but also the getters, the setters, the equals, the hashcode, and the toString(). Sure, your IDE can generate these on its own. But the code is still ugly to look at, and your class file can be massive depending on how many fields are in your class. To help with this, you can use the lombok annotation: @Data and only define your fields. Lombok will go ahead and take care of generating the getters, the setters, the hashcode, the equals, and the toString method; and your code will look much cleaner as you are only still defining the fields in your class. You could also use a Java Record, an @Data class is also mutable, while records are not.
#shorts