Package org.jboss.weld.util.collections
Class Iterables
java.lang.Object
org.jboss.weld.util.collections.Iterables
Static utility methods for
Iterable.- Author:
- Martin Kouba
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleanaddAll(Collection<T> target, Iterable<? extends T> iterable) Add all elements in the iterable to the collection.static <T> Iterable<T>Combine the iterables into a single one.static <T> Iterable<T>Combine the iterables into a single one.static <T,R> Iterable<R> static <T> StringtoMultiRowString(Iterable<T> iterable) static <T,R> Iterable<R>
-
Method Details
-
addAll
Add all elements in the iterable to the collection.- Parameters:
target-iterable-- Returns:
- true if the target was modified, false otherwise
-
concat
Combine the iterables into a single one.- Parameters:
iterables-- Returns:
- a single combined iterable
-
concat
Combine the iterables into a single one. -
iterators
public static <T> Iterator<Iterator<? extends T>> iterators(Iterable<? extends Iterable<? extends T>> iterables) - Parameters:
iterables-- Returns:
- an iterator over iterators from the given iterable of iterables
-
transform
-
flatMap
-
toMultiRowString
- Parameters:
iterable-- Returns:
- See Also:
-