Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public final class UtilityClassWithLombok {
private static final int CONSTANT = 5;
private UtilityClassWithLombok() {
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
public static int addSomething(int in) {
return in + CONSTANT;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment