Class LazyIterablesConcatenator<T>
java.lang.Object
org.apache.sshd.common.util.helper.LazyIterablesConcatenator<T>
- Type Parameters:
T- Type of element being iterared
- All Implemented Interfaces:
Iterable<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLazyIterablesConcatenator(Iterable<? extends Iterable<? extends T>> iterables) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
iterables
-
-
Constructor Details
-
LazyIterablesConcatenator
-
-
Method Details
-
getIterables
-
iterator
-
toString
-
lazyConcatenateIterables
public static <T> Iterable<T> lazyConcatenateIterables(Iterable<? extends Iterable<? extends T>> iterables) - Type Parameters:
T- Type if iterated element- Parameters:
iterables- The iterables to concatenate - ignored ifnull- Returns:
- An
Iterablethat goes over all the elements in the wrapped iterables one after the other. The denomination "lazy" indicates that no iterable is consulted until the previous one has been fully exhausted.
-