public enum AuthenticationHelper {
INSTANCE;
public static AuthenticationHelper INSTANCE() {
return INSTANCE;
}
}
public static void main(String[] args) {
AuthenticationHelper instance1 = AuthenticationHelper.INSTANCE();
AuthenticationHelper instance2 = AuthenticationHelper.INSTANCE();
System.out.println(instance1==instance2);
}