Using @EqualsAndHashCode callSuper attribute

In this post under Lombok I will explain the purpose and how to use the “@EqualsAndHashCode” annotation’s “callSuper” attribute. In my previous post under “Using @EqualsAndHashCode annotation”, I explained with example the purpose of that annotation. Just for recap when this annotation is applied at class level it will automatically generates “equals” and “hashCode” methods…… Continue reading Using @EqualsAndHashCode callSuper attribute

Using @ToString callSuper attribute

In this post under Lombok, I will explain the purpose of and how to use “callSuper” attribute available in “@ToString” annotation. This attribute comes into picture when we are working with hierarchy of classes. For example lets say class “Shape” is a super class and class “Square” is a subclass of “Shape” class. “Shape” and…… Continue reading Using @ToString callSuper attribute