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)
| 283 | * generally guaranteed. |
| 284 | */ |
| 285 | public static String toString(Iterable<?> iterable) { |
| 286 | return Iterators.toString(iterable.iterator()); |
| 287 | } |
| 288 | |
| 289 | /** |
| 290 | * Returns the single element contained in {@code iterable}. |