aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/DataExample_pre.jpage
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-12 00:39:18 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-12 00:39:18 +0200
commit2adf65aeb38ef33d665c1bfd85039f28659ceb27 (patch)
tree5854866fca4cdc557d92c439fcc263ebd6e7336f /usage_examples/DataExample_pre.jpage
parent5fef32c1f59403ef2978942ac2838731b1406413 (diff)
downloadlombok-2adf65aeb38ef33d665c1bfd85039f28659ceb27.tar.gz
lombok-2adf65aeb38ef33d665c1bfd85039f28659ceb27.tar.bz2
lombok-2adf65aeb38ef33d665c1bfd85039f28659ceb27.zip
Example for the @Data annotation.
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;
+ }
+}