improve javadocs

This commit is contained in:
Mike McCandless 2016-05-14 13:46:34 -04:00
parent cf2af8961b
commit 53c2f8b4b6
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ public class Iterables {
}
}
/** Flattens the two level {@code Iterable} into a single {@code Iterable}. Note that this uses the original input iterable so if it
* later changes, the flattened result here will reflect the change. */
public static <T> Iterable<T> flatten(Iterable<? extends Iterable<T>> inputs) {
Objects.requireNonNull(inputs);
return new FlattenedIterables<>(inputs);