Returns a splitter that behaves equivalently to this splitter, but automatically omits empty strings from the results. For example, Splitter.on(',').omitEmptyStrings().split(",a,,,b,c,,") returns an iterable containing only ["a", "b", "c"]. If either trimResults o
()
| 311 | * @return a splitter with the desired configuration |
| 312 | */ |
| 313 | public Splitter omitEmptyStrings() { |
| 314 | return new Splitter(strategy, true, trimmer, limit); |
| 315 | } |
| 316 | |
| 317 | /** |
| 318 | * Returns a splitter that behaves equivalently to {@code this} splitter but stops splitting after |
no outgoing calls
no test coverage detected