T - The type of the transformed elementspublic class TransformingIterable<T> extends TypedIterable<T>
| Constructor and Description |
|---|
TransformingIterable(Iterable<?> iterable,
Class<T> type,
java.util.function.Function<Object,T> function)
Creates a new
TransformingIterable instance. |
| Modifier and Type | Method and Description |
|---|---|
protected static <T> Iterable<T> |
getIterable(Iterable<?> iterable,
java.util.function.Function<Object,T> transformation) |
first, getType, getWrappedIterable, isEmpty, iterator, streamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic TransformingIterable(Iterable<?> iterable, Class<T> type, java.util.function.Function<Object,T> function)
TransformingIterable instance.iterable - The backing iterabletype - The type of the transformed elementsfunction - The function that is used to transform each elementprotected static <T> Iterable<T> getIterable(Iterable<?> iterable, java.util.function.Function<Object,T> transformation)
Copyright © 2014. All rights reserved.