I have the following class:
import lombok.Getter; import lombok.RequiredArgsConstructor; @Getter @RequiredArgsConstructor public abstract class EmailData { private final Iterable<String> recipients; }
and the following subclass:
import lombok.Getter; @Getter public class PasswordRecoveryEmail extends EmailData { private final String token; }
Is it possible to annotate PasswordRecoveryEmail
in such a way that a constructor will be created for both the fields of the required class and the superclass?
source share