aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/DataExample_pre.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples/DataExample_pre.jpage')
-rw-r--r--usage_examples/DataExample_pre.jpage16
1 files changed, 16 insertions, 0 deletions
diff --git a/usage_examples/DataExample_pre.jpage b/usage_examples/DataExample_pre.jpage
new file mode 100644
index 00000000..890e648b
--- /dev/null
+++ b/usage_examples/DataExample_pre.jpage
@@ -0,0 +1,16 @@
+import lombok.AccessLevel;
+import lombok.Setter;
+import lombok.Data;
+
+@lombok.core.PrintAST(printContent=true)
+public @Data class DataExample {
+ private final String name;
+ private @Setter(AccessLevel.PACKAGE) int age;
+ private double score;
+ private String[] tags;
+
+ public static @Data(staticConstructor="of") class Exercise<T> {
+ private final String name;
+ private final T value;
+ }
+}