com.google.common.collect
Class AbstractIterable<E>

java.lang.Object
  extended by 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

Constructor Summary
AbstractIterable()
           
 
Method Summary
 String toString()
          Returns a string representation of this iterable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

AbstractIterable

public AbstractIterable()
Method Detail

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