com.google.common.collect
Class AbstractIterable<E>
java.lang.Object
com.google.common.collect.AbstractIterable<E>
- All Implemented Interfaces:
- Iterable<E>
public abstract class AbstractIterable<E>
- extends Object
- implements Iterable<E>
Provides an implementation of Object.toString()
for Iterable
instances.
- Author:
- Mike Bostock
Method Summary |
String |
toString()
Returns a string representation of this iterable. |
AbstractIterable
public AbstractIterable()
toString
public String toString()
- Returns a string representation of this iterable. The string representation
consists of a list of the iterable's elements in the order they are
returned by its iterator, enclosed in square brackets ("[]"). Adjacent
elements are separated by the characters ", " (comma and space). Elements
are converted to strings as by
String.valueOf(Object)
.
- Overrides:
toString
in class Object