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

Method toString

output/java_guava/1.4.16/Iterators.java:308–310  ·  view source on GitHub ↗

Returns a string representation of iterator, with the format [e1, e2, ..., en]. The iterator will be left exhausted: its hasNext() method will return false.

(Iterator<?> iterator)

Source from the content-addressed store, hash-verified

306
307
308 public static String toString(Iterator<?> iterator) {
309 return Collections2.STANDARD_JOINER.appendTo(new StringBuilder().append('['), iterator).append(']').toString();
310 }
311
312 /**
313 * Returns the single element contained in {@code iterator}.

Callers 1

toStringMethod · 0.95

Calls 3

toStringMethod · 0.65
appendMethod · 0.45
appendToMethod · 0.45

Tested by

no test coverage detected