Returns a splitter that behaves equivalently to {@code this} splitter, but automatically removes leading and trailing {@linkplain CharMatcher#whitespace whitespace} from each returned substring; equivalent to {@code trimResults(CharMatcher.whitespace())}. For example, {@code Splitter.on(',').trimRes
()
| 336 | * @return a splitter with the desired configuration |
| 337 | */ |
| 338 | public Splitter trimResults() { |
| 339 | return trimResults(CharMatcher.whitespace()); |
| 340 | } |
| 341 | |
| 342 | /** |
| 343 | * Returns a splitter that behaves equivalently to {@code this} splitter, but removes all leading |