aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/ConstructorExample_pre.jpage
blob: ac0d3c28f9c5e482e2840551e261730cbf7755e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import lombok.AccessLevel;
import lombok.RequiredArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.NonNull;

@RequiredArgsConstructor(staticName = "of")
@AllArgsConstructor(access = AccessLevel.PROTECTED)
public class ConstructorExample<T> {
	private int x, y;
	@NonNull private T description;
	
	@NoArgsConstructor
	public static class NoArgsExample {
		@NonNull private String field;
	}
}