Returns a splitter that uses the given single-character separator. For example, Splitter.on(',').split("foo,,bar") returns an iterable containing ["foo", "", "bar"]. @param separator the character to recognize as a separator @return a splitter, with default settings, that recognizes
(char separator)
| 120 | |
| 121 | |
| 122 | public static Splitter on(char separator) { |
| 123 | return on(CharMatcher.is(separator)); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Returns a splitter that considers any single character matched by the given {@code CharMatcher} |
no test coverage detected