aboutsummaryrefslogtreecommitdiff
path: root/website2/usageExamples/DataExample_pre.jpage
blob: 404d345855162509ac3bb8d689cc4797a72a9b3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import lombok.AccessLevel;
import lombok.Setter;
import lombok.Data;
import lombok.ToString;

@Data public class DataExample {
	private final String name;
	@Setter(AccessLevel.PACKAGE) private int age;
	private double score;
	private String[] tags;
	
	@ToString(includeFieldNames=true)
	@Data(staticConstructor="of")
	public static class Exercise<T> {
		private final String name;
		private final T value;
	}
}