aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/DataExample_pre.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website/usageExamples/DataExample_pre.jpage')
-rw-r--r--website/usageExamples/DataExample_pre.jpage18
1 files changed, 18 insertions, 0 deletions
diff --git a/website/usageExamples/DataExample_pre.jpage b/website/usageExamples/DataExample_pre.jpage
new file mode 100644
index 00000000..404d3458
--- /dev/null
+++ b/website/usageExamples/DataExample_pre.jpage
@@ -0,0 +1,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;
+ }
+}