Skip to content

Instantly share code, notes, and snippets.

@TheAner
Last active March 3, 2020 14:42
Show Gist options
  • Save TheAner/29054493e0691a16e6461f45d8eee1cb to your computer and use it in GitHub Desktop.
Save TheAner/29054493e0691a16e6461f45d8eee1cb to your computer and use it in GitHub Desktop.
Lombok i jego wspaniałości - https://theaner.pl/lombok-i-jego-wspanialosci/
public class Main {
public static void main(String[] args) {
User.builder()
.nickname("TheAner")
.points(100)
.build();
}
}
//User.java
import lombok.Builder;
import lombok.Value;
@Builder @Value
public class User {
String nickname;
int points;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment