@Test public void testGetStringList() { Properties properties = new Properties(); properties.put("key", "1,2, 3"); Assert.assertEquals(PropertiesUtils.getPropAsList(properties, "key"), ImmutableList.of("1", "2", "3")); Assert.assertEquals(PropertiesUtils.getPropAsList(properties, "key2", "default"), ImmutableList.of("default")); }
public static List<String> getPropAsList(Properties properties, String key) { return LIST_SPLITTER.splitToList(properties.getProperty(key)); }
PropertiesUtils { public static List<String> getPropAsList(Properties properties, String key) { return LIST_SPLITTER.splitToList(properties.getProperty(key)); } }
PropertiesUtils { public static List<String> getPropAsList(Properties properties, String key) { return LIST_SPLITTER.splitToList(properties.getProperty(key)); }  }
PropertiesUtils { public static List<String> getPropAsList(Properties properties, String key) { return LIST_SPLITTER.splitToList(properties.getProperty(key)); }  static Properties combineProperties(Properties... properties); static Map<String, ?> propsToStringKeyMap(Properties properties); static boolean getPropAsBoolean(Properties properties, String key, String defaultValue); static int getPropAsInt(Properties properties, String key, int defaultValue); static long getPropAsLong(Properties properties, String key, long defaultValue); static List<String> getPropAsList(Properties properties, String key); static List<String> getPropAsList(Properties properties, String key, String def); static Properties extractPropertiesWithPrefix(Properties properties, Optional<String> prefix); static String serialize(Properties properties); static Properties deserialize(String serialized); static String prettyPrintProperties(Properties properties); }
PropertiesUtils { public static List<String> getPropAsList(Properties properties, String key) { return LIST_SPLITTER.splitToList(properties.getProperty(key)); }  static Properties combineProperties(Properties... properties); static Map<String, ?> propsToStringKeyMap(Properties properties); static boolean getPropAsBoolean(Properties properties, String key, String defaultValue); static int getPropAsInt(Properties properties, String key, int defaultValue); static long getPropAsLong(Properties properties, String key, long defaultValue); static List<String> getPropAsList(Properties properties, String key); static List<String> getPropAsList(Properties properties, String key, String def); static Properties extractPropertiesWithPrefix(Properties properties, Optional<String> prefix); static String serialize(Properties properties); static Properties deserialize(String serialized); static String prettyPrintProperties(Properties properties);  }