MCPcopy Create free account
hub / github.com/antlr/codebuff / omitEmptyStrings

Method omitEmptyStrings

corpus/java/training/guava/base/Splitter.java:313–315  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 2

ClassPathClass · 0.45
simplifyPathMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected