Package org.dmfs.jems2.iterable
Class Joined<T>
- java.lang.Object
-
- org.dmfs.jems2.iterable.Joined<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
public final class Joined<T> extends java.lang.Object implements java.lang.Iterable<T>AnIterablewhich joins otherIterables by iterating the values of them one after another.Note: other frameworks call this operation, "flatten". While this is technically appropriate, it often doesn't really express the intent very well.
-
-
Constructor Summary
Constructors Constructor Description Joined(java.lang.Iterable<? extends java.lang.Iterable<? extends T>> iterables)Joined(java.lang.Iterable<? extends T>... iterables)Joined(java.lang.Iterable<? extends T> iterable, T... appendedValues)Joined(Optional<? extends java.lang.Iterable<? extends T>>... iterables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<T>iterator()
-