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

Method on

output/java_guava/1.4.19/Splitter.java:122–124  ·  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

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

Callers 7

InetAddressesClass · 0.95
ClassPathClass · 0.95
CacheBuilderSpecClass · 0.95
onPatternMethod · 0.95
withKeyValueSeparatorMethod · 0.95
simplifyPathMethod · 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