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