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

Method limit

output/java_guava/1.4.16/Splitter.java:344–347  ·  view source on GitHub ↗

Returns a splitter that behaves equivalently to this splitter but stops splitting after it reaches the limit. The limit defines the maximum number of items returned by the iterator, or the maximum size of the list returned by #splitToList. For example, {@code Splitter.on(',').lim

(int limit)

Source from the content-addressed store, hash-verified

342
343
344 public Splitter limit(int limit) {
345 checkArgument(limit > 0, "must be greater than zero: %s", limit);
346 return new Splitter(strategy, omitEmptyStrings, trimmer, limit);
347 }
348
349 /**
350 * Returns a splitter that behaves equivalently to {@code this} splitter, but automatically

Callers 5

processRemainingMethod · 0.45
InetAddressesClass · 0.45
growMethod · 0.45
readMoreCharsMethod · 0.45
availableCapacityMethod · 0.45

Calls 1

checkArgumentMethod · 0.45

Tested by

no test coverage detected