diff options
Diffstat (limited to 'usage_examples/experimental/UtilityClassExample_post.jpage')
-rw-r--r-- | usage_examples/experimental/UtilityClassExample_post.jpage | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usage_examples/experimental/UtilityClassExample_post.jpage b/usage_examples/experimental/UtilityClassExample_post.jpage new file mode 100644 index 00000000..70810230 --- /dev/null +++ b/usage_examples/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; + } +} |