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