Class TransformingIterator<InternalV,ExternalV>

java.lang.Object
com.electronwill.nightconfig.core.utils.TransformingIterator<InternalV,ExternalV>
All Implemented Interfaces:
Iterator<ExternalV>
Direct Known Subclasses:
TransformingListIterator

public class TransformingIterator<InternalV,ExternalV> extends Object implements Iterator<ExternalV>
A TransformingIterator applies "just in time" transformations to an Interator<InternalV> in order to make it like an Interator<ExternalV>.

The transformations are applied "just in time", that is, the values are converted only when they are used, not during the construction of the TransformingIterator.

See Also: