Use public static final class with a private constructor instead.