Returns a string representation of iterable, with the format [e1, e2, ..., en] (that is, identical to java.util.Arrays Arrays.toString(Iterables.toArray(iterable))). Note that for most implementations of Collection, collection.toString() also gi
(Iterable<?> iterable)
| 295 | |
| 296 | |
| 297 | public static String toString(Iterable<?> iterable) { |
| 298 | return Iterators.toString(iterable.iterator()); |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * Returns the single element contained in {@code iterable}. |