MCPcopy
hub / github.com/google/guava / trimResults

Method trimResults

guava/src/com/google/common/base/Splitter.java:338–340  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Calls 2

whitespaceMethod · 0.95
checkNotNullMethod · 0.45