aboutsummaryrefslogtreecommitdiff
path: root/website2/usageExamples/experimental/AccessorsExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website2/usageExamples/experimental/AccessorsExample_post.jpage')
-rw-r--r--website2/usageExamples/experimental/AccessorsExample_post.jpage20
1 files changed, 20 insertions, 0 deletions
diff --git a/website2/usageExamples/experimental/AccessorsExample_post.jpage b/website2/usageExamples/experimental/AccessorsExample_post.jpage
new file mode 100644
index 00000000..ae5a39db
--- /dev/null
+++ b/website2/usageExamples/experimental/AccessorsExample_post.jpage
@@ -0,0 +1,20 @@
+public class AccessorsExample {
+ private int age = 10;
+
+ public int age() {
+ return this.age;
+ }
+
+ public AccessorsExample age(final int age) {
+ this.age = age;
+ return this;
+ }
+}
+
+class PrefixExample {
+ private String fName = "Hello, World!";
+
+ public String getName() {
+ return this.fName;
+ }
+}