public class ToStringIterator extends Object implements Iterator<String>
String values, that uses the
Object.toString() on elements of the parent Iterator for the
conversion.
This Implementation does not use AdaptingIterators implementation,
because the Object.toString() method can be used to create a string
representation for every object and therefore there is no need for the
filtering functionality provided by the AdaptingIterator.
| Constructor and Description |
|---|
ToStringIterator(Iterator<?> it)
Creates an string iterator over parsed parent
|
public ToStringIterator(Iterator<?> it) throws NullPointerException
it - the parent iteratorNullPointerException - if null is parsed as parent
iteratorCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.