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

Method omitEmptyStrings

output/java_guava/1.4.17/Splitter.java:321–323  ·  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

319
320
321 public Splitter omitEmptyStrings() {
322 return new Splitter(strategy, true, trimmer, limit);
323 }
324
325 /**
326 * 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