Jelajahi Sumber

improve javadocs

Mike McCandless 9 tahun lalu
induk
melakukan
53c2f8b4b6

+ 2 - 0
core/src/main/java/org/elasticsearch/common/util/iterable/Iterables.java

@@ -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);