Last active
August 29, 2015 14:07
-
-
Save up1/55ce1cecfd33acacc24e to your computer and use it in GitHub Desktop.
Lombok
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
import lombok.experimental.Builder; | |
@Builder | |
public class Person { | |
private int id; | |
private String firstname; | |
private String lastname; | |
private double age; | |
} |
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
<dependency> | |
<groupId>org.projectlombok</groupId> | |
<artifactId>lombok</artifactId> | |
<version>1.14.6</version> | |
<scope>provided</scope> | |
</dependency> |
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
import lombok.Data; | |
import lombok.ToString; | |
@Data | |
@ToString(of={"firstname", "lastname"}) | |
public class Person { | |
private int id; | |
private String firstname; | |
private String lastname; | |
private double age; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment