From - The type to convert values from.To - The type to convert values to.public final class ConvertingIterable<From,To> extends Object implements Iterable<To>
ConvertingIterable is an Iterable that can be wrapped
around a given Iterable and generates Iterators that
converts all values with a given Converter.| Constructor and Description |
|---|
ConvertingIterable(Iterable<? extends From> iterable,
Converter<? super From,? extends To> converter)
Creates a new
ConvertingIterable. |
| Modifier and Type | Method and Description |
|---|---|
ConvertingIterator<From,To> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ConvertingIterable(Iterable<? extends From> iterable, Converter<? super From,? extends To> converter) throws IllegalArgumentException
ConvertingIterable.iterable - The Iterable to iterate over.converter - The Converter to be used.IllegalArgumentException - If the given Iterable is null or if the
given Converter is null.Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.