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.
|
public TakeIterable(int num, java.lang.Iterable<? extends T> source)
num
- the number of items to takesource
- the source sequence