java.lang.Object
xyz.cofe.iter.MapIterable<FromType,ToType>
- Type Parameters:
FromType- Исходный типToType- Целевой тип
- All Implemented Interfaces:
java.lang.Iterable<ToType>,Eterable<ToType>
public class MapIterable<FromType,ToType> extends java.lang.Object implements Eterable<ToType>
Итератор отобрадения одного типа данных на другой
-
Constructor Summary
Constructors Constructor Description MapIterable(java.lang.Iterable<FromType> src, java.util.function.Function<FromType,ToType> convertor)Конструктор -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MapIterable
public MapIterable(java.lang.Iterable<FromType> src, java.util.function.Function<FromType,ToType> convertor)Конструктор- Parameters:
src- исходные данныеconvertor- функция конвертировния
-
-
Method Details