aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/experimental/ValueExample_pre.jpage
blob: d9550c252a389a558d653c5f28120b758779eda1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import lombok.AccessLevel;
import lombok.experimental.NonFinal;
import lombok.experimental.Value;
import lombok.experimental.Wither;
import lombok.ToString;

@Value public class ValueExample {
	String name;
	@Wither(AccessLevel.PACKAGE) @NonFinal int age;
	double score;
	protected String[] tags;
	
	@ToString(includeFieldNames=true)
	@Value(staticConstructor="of")
	public static class Exercise<T> {
		String name;
		T value;
	}
}