Class TransformingCollection<InternalV,ExternalV>

java.lang.Object
com.electronwill.nightconfig.core.utils.TransformingCollection<InternalV,ExternalV>
All Implemented Interfaces:
Iterable<ExternalV>, Collection<ExternalV>
Direct Known Subclasses:
TransformingList, TransformingSet

public class TransformingCollection<InternalV,ExternalV> extends Object implements Collection<ExternalV>
A TransformingCollection applies "just in time" transformations to a Collection<InternalV> in order to make it like a Collection<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 TransformingCollection.

See Also: