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

Method on

output/java_guava/1.4.13/Splitter.java:126–128  ·  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

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

Callers 3

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