Package org.jboss.windup.util
Class IterableConverter<TFrom,TTo>
- java.lang.Object
-
- org.jboss.windup.util.IterableConverter<TFrom,TTo>
-
- All Implemented Interfaces:
Iterable<TTo>
public abstract class IterableConverter<TFrom,TTo> extends Object implements Iterable<TTo>
An Iterable that takes from the other Iterable and converts the items using given method. The primary reason is to prevent memory issues which may arise with larger lists.- Author:
- Ondrej Zizka
-
-
Constructor Summary
Constructors Constructor Description IterableConverter(Iterable<TFrom> sourceIterable)Creates a newIterableConverterfrom the sourceIterable.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TTofrom(TFrom m)Implements the conversion from the source type to the destination type.Iterator<TTo>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
IterableConverter
public IterableConverter(Iterable<TFrom> sourceIterable)
Creates a newIterableConverterfrom the sourceIterable.
-
-