Lombok, 2nd version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package eu.lockup.tests; | |
import lombok.AllArgsConstructor; | |
import lombok.Getter; | |
import lombok.RequiredArgsConstructor; | |
import lombok.Setter; | |
@AllArgsConstructor | |
@RequiredArgsConstructor | |
public class Person { | |
@Getter | |
private final String firstName; | |
@Getter | |
private final String lastName; | |
@Getter | |
private final int age; | |
@Getter | |
private final Address address; | |
@Getter | |
@Setter | |
private String hobby; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment