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

Method on

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

Returns a splitter that uses the given single-character separator. For example, Splitter.on(',').split("foo,,bar") returns an iterable containing ["foo", "", "bar"]. @param separator the character to recognize as a separator @return a splitter, with default settings, that recognizes

(char separator)

Source from the content-addressed store, hash-verified

118 * @return a splitter, with default settings, that recognizes that separator
119 */
120 public static Splitter on(char separator) {
121 return on(CharMatcher.is(separator));
122 }
123
124 /**
125 * Returns a splitter that considers any single character matched by the given {@code CharMatcher}

Callers 7

CacheBuilderSpecClass · 0.95
ClassPathClass · 0.95
simplifyPathMethod · 0.95
onPatternMethod · 0.95
withKeyValueSeparatorMethod · 0.95
InetAddressesClass · 0.95
InternetDomainNameClass · 0.95

Calls 5

isMethod · 0.95
checkNotNullMethod · 0.45
checkArgumentMethod · 0.45
lengthMethod · 0.45
matchesMethod · 0.45

Tested by

no test coverage detected