@Test public void test(){ System.out.println(TabEnum.findByDescriptor("DD").getTitle()); Locale local = Config.getConfig(ConfigRefEnum.CONFIG_LOCAL); System.out.println(local); }
@SuppressWarnings("unchecked") public static <T extends Serializable> T getConfig(ConfigRefEnum key, @Nullable T defaultValue){ T result = (T) CONFIG.get(key); return result == null ? defaultValue : result; }
Config { @SuppressWarnings("unchecked") public static <T extends Serializable> T getConfig(ConfigRefEnum key, @Nullable T defaultValue){ T result = (T) CONFIG.get(key); return result == null ? defaultValue : result; } }
Config { @SuppressWarnings("unchecked") public static <T extends Serializable> T getConfig(ConfigRefEnum key, @Nullable T defaultValue){ T result = (T) CONFIG.get(key); return result == null ? defaultValue : result; }  }
Config { @SuppressWarnings("unchecked") public static <T extends Serializable> T getConfig(ConfigRefEnum key, @Nullable T defaultValue){ T result = (T) CONFIG.get(key); return result == null ? defaultValue : result; }  static Account getAccount(); static void setAccount(Account account); static void init(Context context); static void saveState(Bundle bundle); static void restoreState(Bundle bundle); static SharedPreferences getConfSP(); @SuppressWarnings("unchecked") static T getConfig(ConfigRefEnum key, @Nullable T defaultValue); @SuppressWarnings("unchecked") static T getConfig(ConfigRefEnum key); static void setConfig(ConfigRefEnum key, @Nullable T value); static Configuration getConfiguration(); static void persistentAccount(Context context); }
Config { @SuppressWarnings("unchecked") public static <T extends Serializable> T getConfig(ConfigRefEnum key, @Nullable T defaultValue){ T result = (T) CONFIG.get(key); return result == null ? defaultValue : result; }  static Account getAccount(); static void setAccount(Account account); static void init(Context context); static void saveState(Bundle bundle); static void restoreState(Bundle bundle); static SharedPreferences getConfSP(); @SuppressWarnings("unchecked") static T getConfig(ConfigRefEnum key, @Nullable T defaultValue); @SuppressWarnings("unchecked") static T getConfig(ConfigRefEnum key); static void setConfig(ConfigRefEnum key, @Nullable T value); static Configuration getConfiguration(); static void persistentAccount(Context context); static final ArrayList<Tab> HOME_TAB_DEFAULT; static final ArrayList<Locale> LOCAL_LIST; }