static List<ConfigurationKey> getSortedConfigurationKeys() { List<ConfigurationKey> configurationKeys = new ArrayList<>(); Collections.addAll(configurationKeys, ConfigurationKey.values()); Collections.sort(configurationKeys, new Comparator<ConfigurationKey>() { @Override public int compare(ConfigurationKey o1, ConfigurationKey o2) { return o1.get().compareTo(o2.get()); } }); return configurationKeys; }
static List<ConfigurationKey> getSortedConfigurationKeys() { List<ConfigurationKey> configurationKeys = new ArrayList<>(); Collections.addAll(configurationKeys, ConfigurationKey.values()); Collections.sort(configurationKeys, new Comparator<ConfigurationKey>() { @Override public int compare(ConfigurationKey o1, ConfigurationKey o2) { return o1.get().compareTo(o2.get()); } }); return configurationKeys; }
static List<ConfigurationKey> getSortedConfigurationKeys() { List<ConfigurationKey> configurationKeys = new ArrayList<>(); Collections.addAll(configurationKeys, ConfigurationKey.values()); Collections.sort(configurationKeys, new Comparator<ConfigurationKey>() { @Override public int compare(ConfigurationKey o1, ConfigurationKey o2) { return o1.get().compareTo(o2.get()); } }); return configurationKeys; }
static List<ConfigurationKey> getSortedConfigurationKeys() { List<ConfigurationKey> configurationKeys = new ArrayList<>(); Collections.addAll(configurationKeys, ConfigurationKey.values()); Collections.sort(configurationKeys, new Comparator<ConfigurationKey>() { @Override public int compare(ConfigurationKey o1, ConfigurationKey o2) { return o1.get().compareTo(o2.get()); } }); return configurationKeys; }
static List<ConfigurationKey> getSortedConfigurationKeys() { List<ConfigurationKey> configurationKeys = new ArrayList<>(); Collections.addAll(configurationKeys, ConfigurationKey.values()); Collections.sort(configurationKeys, new Comparator<ConfigurationKey>() { @Override public int compare(ConfigurationKey o1, ConfigurationKey o2) { return o1.get().compareTo(o2.get()); } }); return configurationKeys; }
static List<ConfigurationKey> getSortedConfigurationKeys() { List<ConfigurationKey> configurationKeys = new ArrayList<>(); Collections.addAll(configurationKeys, ConfigurationKey.values()); Collections.sort(configurationKeys, new Comparator<ConfigurationKey>() { @Override public int compare(ConfigurationKey o1, ConfigurationKey o2) { return o1.get().compareTo(o2.get()); } }); return configurationKeys; }
static List<ConfigurationKey> getSortedConfigurationKeys() { List<ConfigurationKey> configurationKeys = new ArrayList<>(); Collections.addAll(configurationKeys, ConfigurationKey.values()); Collections.sort(configurationKeys, new Comparator<ConfigurationKey>() { @Override public int compare(ConfigurationKey o1, ConfigurationKey o2) { return o1.get().compareTo(o2.get()); } }); return configurationKeys; }
/** * * @param from * @return the key with the given value, or <code>null</code> if no such exists */ public static ConfigurationKey fromString(String from) { for (ConfigurationKey key : values()) { if (key.get().equals(from)) { return key; } } return null; }
/** * * @param from * @return the key with the given value, or <code>null</code> if no such exists */ public static ConfigurationKey fromString(String from) { for (ConfigurationKey key : values()) { if (key.get().equals(from)) { return key; } } return null; }
/** * * @param from * @return the key with the given value, or <code>null</code> if no such exists */ public static ConfigurationKey fromString(String from) { for (ConfigurationKey key : values()) { if (key.get().equals(from)) { return key; } } return null; }
/** * * @param from * @return the key with the given value, or <code>null</code> if no such exists */ public static ConfigurationKey fromString(String from) { for (ConfigurationKey key : values()) { if (key.get().equals(from)) { return key; } } return null; }
/** * * @param from * @return the key with the given value, or <code>null</code> if no such exists */ public static ConfigurationKey fromString(String from) { for (ConfigurationKey key : values()) { if (key.get().equals(from)) { return key; } } return null; }
/** * * @param from * @return the key with the given value, or <code>null</code> if no such exists */ public static ConfigurationKey fromString(String from) { for (ConfigurationKey key : values()) { if (key.get().equals(from)) { return key; } } return null; }
/** * Iterate through the {@link ConfigurationKey#values()} and try to get a system property for every key. The value is automatically converted - a runtime * exception may be thrown during conversion. * * @return all the properties set as system properties */ private Map<ConfigurationKey, Object> getSystemProperties() { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (ConfigurationKey key : ConfigurationKey.values()) { String property = getSystemProperty(key.get()); if (property != null) { processKeyValue(found, key, property); } } return found; }
/** * Iterate through the {@link ConfigurationKey#values()} and try to get a system property for every key. The value is automatically converted - a runtime * exception may be thrown during conversion. * * @return all the properties set as system properties */ private Map<ConfigurationKey, Object> getSystemProperties() { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (ConfigurationKey key : ConfigurationKey.values()) { String property = getSystemProperty(key.get()); if (property != null) { processKeyValue(found, key, property); } } return found; }
/** * Iterate through the {@link ConfigurationKey#values()} and try to get a system property for every key. The value is automatically converted - a runtime * exception may be thrown during conversion. * * @return all the properties set as system properties */ private Map<ConfigurationKey, Object> getSystemProperties() { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (ConfigurationKey key : ConfigurationKey.values()) { String property = getSystemProperty(key.get()); if (property != null) { processKeyValue(found, key, property); } } return found; }
/** * Iterate through the {@link ConfigurationKey#values()} and try to get a system property for every key. The value is automatically converted - a runtime * exception may be thrown during conversion. * * @return all the properties set as system properties */ private Map<ConfigurationKey, Object> getSystemProperties() { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (ConfigurationKey key : ConfigurationKey.values()) { String property = getSystemProperty(key.get()); if (property != null) { processKeyValue(found, key, property); } } return found; }
/** * Iterate through the {@link ConfigurationKey#values()} and try to get a system property for every key. The value is automatically converted - a runtime * exception may be thrown during conversion. * * @return all the properties set as system properties */ private Map<ConfigurationKey, Object> getSystemProperties() { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (ConfigurationKey key : ConfigurationKey.values()) { String property = getSystemProperty(key.get()); if (property != null) { processKeyValue(found, key, property); } } return found; }
/** * Iterate through the {@link ConfigurationKey#values()} and try to get a system property for every key. The value is automatically converted - a runtime * exception may be thrown during conversion. * * @return all the properties set as system properties */ private Map<ConfigurationKey, Object> getSystemProperties() { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (ConfigurationKey key : ConfigurationKey.values()) { String property = getSystemProperty(key.get()); if (property != null) { processKeyValue(found, key, property); } } return found; }