/** * Converts all the object in the iterable using the given {@link Converter}. * Actually it handles also Maps, Arrays and Iterator by collecting their values. * Note that this method accepts an Object in order to be used in conjunction with the {@link Lambda#forEach(Iterable)}. * @param iterable The iterable containing the objects to be converted * @param converter The converter that specifies how each object in the iterable must be converted * @return An Iterator on all the objects in the given iterable converted using the given {@link Converter} */ public static <F, T> Iterator<T> convertIterator(Object iterable, Converter<F, T> converter) { return new ConverterIterator(converter, asIterator(iterable)); }