aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/WithExample_pre.jpage
blob: f03ee891ad9bda03ace82c381df1946f69329581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import lombok.AccessLevel;
import lombok.NonNull;
import lombok.With;

public class WithExample {
	@With(AccessLevel.PROTECTED) @NonNull private final String name;
	@With private final int age;
	
	public WithExample(@NonNull String name, int age) {
		this.name = name;
		this.age = age;
	}
}