(Object str, Object splitter)
| 1267 | // } |
| 1268 | |
| 1269 | public static Object split(Object str, Object splitter) { |
| 1270 | if (str == null || splitter == null) { |
| 1271 | return Collections.emptyList(); |
| 1272 | } |
| 1273 | |
| 1274 | String s = String.valueOf(str); |
| 1275 | String delim = String.valueOf(splitter); |
| 1276 | |
| 1277 | return Arrays.asList(s.split(Pattern.quote(delim))); |
| 1278 | } |
| 1279 | } |
no outgoing calls