T - the value typepublic final class TakeIterable<T>
extends java.lang.Object
implements java.lang.Iterable<T>
| Constructor and Description |
|---|
TakeIterable(int num,
java.lang.Iterable<? extends T> source)
Constructor, initializes the fields.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<T> |
iterator() |
public TakeIterable(int num,
java.lang.Iterable<? extends T> source)
num - the number of items to takesource - the source sequence