E
- the type of the elementspublic final class RepeatedCombinationIterable<E> extends java.lang.Object implements java.lang.Iterable<RubyArray<E>>
RepeatedCombinationIterable
generates all repeated combinations into
a List with length n.Constructor and Description |
---|
RepeatedCombinationIterable(java.util.List<? extends E> list,
int n)
Creates a
RepeatedCombinationIterable . |
public RepeatedCombinationIterable(java.util.List<? extends E> list, int n)
RepeatedCombinationIterable
.list
- a Listn
- length of each repeated combinationjava.lang.NullPointerException
- if list is null