MCPcopy Index your code
hub / github.com/antlr/codebuff / split

Method split

output/java_guava/1.4.17/Splitter.java:393–406  ·  view source on GitHub ↗

Splits sequence into string components and makes them available through an Iterator, which may be lazily evaluated. If you want an eagerly computed List, use #splitToList(CharSequence). @param sequence the sequence of characters to split @return an iteration over the

(final CharSequence sequence)

Source from the content-addressed store, hash-verified

391
392
393 public Iterable<String> split(final CharSequence sequence) {
394 checkNotNull(sequence);
395 return new Iterable<String>() {
396 @Override
397 public Iterator<String> iterator() {
398 return splittingIterator(sequence);
399 }
400
401 @Override
402 public String toString() {
403 return Joiner.on(", ").appendTo(new StringBuilder().append('['), this).append(']').toString();
404 }
405 };
406 }
407
408 private Iterator<String> splittingIterator(CharSequence sequence) {
409 return strategy.iterator(this, sequence);

Callers 15

histo.pyFile · 0.45
addAggrMethod · 0.45
defineTemplateMethod · 0.45
addAggrMethod · 0.45
defineTemplateMethod · 0.45
addAggrMethod · 0.45
defineTemplateMethod · 0.45
addAggrMethod · 0.45
defineTemplateMethod · 0.45
addAggrMethod · 0.45
defineTemplateMethod · 0.45

Calls 1

checkNotNullMethod · 0.45

Tested by

no test coverage detected