aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/experimental/UtilityClassExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website/usageExamples/experimental/UtilityClassExample_post.jpage')
-rw-r--r--website/usageExamples/experimental/UtilityClassExample_post.jpage11
1 files changed, 11 insertions, 0 deletions
diff --git a/website/usageExamples/experimental/UtilityClassExample_post.jpage b/website/usageExamples/experimental/UtilityClassExample_post.jpage
new file mode 100644
index 00000000..70810230
--- /dev/null
+++ b/website/usageExamples/experimental/UtilityClassExample_post.jpage
@@ -0,0 +1,11 @@
+public final class UtilityClassExample {
+ private static final int CONSTANT = 5;
+
+ private UtilityClassExample() {
+ throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
+ }
+
+ public static void addSomething(int in) {
+ return in + CONSTANT;
+ }
+}