added impl for @UtilityClass.

This commit is contained in:
Reinier Zwitserloot
2015-02-02 04:52:20 +01:00
parent 46ce592dff
commit d8da2b9438
18 changed files with 480 additions and 52 deletions
@@ -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;
}
}