@Test public void commaSplitValueTest() { String input = "a,b,c,d"; List<String> expected = new ArrayList<>(); expected.add("a"); expected.add("b"); expected.add("c"); expected.add("d"); List<String> actual = SvgCssUtils.splitValueList(input); Assert.assertEquals(expected, actual); }
public static List<String> splitValueList(String value) { List<String> result = new ArrayList<>(); if (value != null && value.length() > 0) { value = value.trim(); String[] list = value.split("\\s*(,|\\s)\\s*"); result.addAll(Arrays.asList(list)); } return result; }
SvgCssUtils { public static List<String> splitValueList(String value) { List<String> result = new ArrayList<>(); if (value != null && value.length() > 0) { value = value.trim(); String[] list = value.split("\\s*(,|\\s)\\s*"); result.addAll(Arrays.asList(list)); } return result; } }
SvgCssUtils { public static List<String> splitValueList(String value) { List<String> result = new ArrayList<>(); if (value != null && value.length() > 0) { value = value.trim(); String[] list = value.split("\\s*(,|\\s)\\s*"); result.addAll(Arrays.asList(list)); } return result; } private  SvgCssUtils(); }
SvgCssUtils { public static List<String> splitValueList(String value) { List<String> result = new ArrayList<>(); if (value != null && value.length() > 0) { value = value.trim(); String[] list = value.split("\\s*(,|\\s)\\s*"); result.addAll(Arrays.asList(list)); } return result; } private  SvgCssUtils(); static List<String> splitValueList(String value); static String convertFloatToString(float value); static String convertDoubleToString(double value); @Deprecated static float convertPtsToPx(float pts); @Deprecated static double convertPtsToPx(double pts); @Deprecated static boolean isStyleSheetLink(IElementNode headChildElement); }
SvgCssUtils { public static List<String> splitValueList(String value) { List<String> result = new ArrayList<>(); if (value != null && value.length() > 0) { value = value.trim(); String[] list = value.split("\\s*(,|\\s)\\s*"); result.addAll(Arrays.asList(list)); } return result; } private  SvgCssUtils(); static List<String> splitValueList(String value); static String convertFloatToString(float value); static String convertDoubleToString(double value); @Deprecated static float convertPtsToPx(float pts); @Deprecated static double convertPtsToPx(double pts); @Deprecated static boolean isStyleSheetLink(IElementNode headChildElement);  }