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)
| 118 | * @return a splitter, with default settings, that recognizes that separator |
| 119 | */ |
| 120 | public static Splitter on(char separator) { |
| 121 | return on(CharMatcher.is(separator)); |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Returns a splitter that considers any single character matched by the given {@code CharMatcher} |
no test coverage detected