Instantly share code, notes, and snippets.

@cajar1988 /Person.java Secret
Created Oct 30, 2015

Embed
What would you like to do?
Lombok, 2nd version
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