|Constructor and Description|
Create a Combination to enumerate through all subsets of the supplied Object array, selecting m at a time.
public RDBERule.Combinations(Object inArray, int m)
inArray- the group to choose from
m- int the number to select in each choice
public boolean hasMoreElements()
public Object nextElement()
Actually, an array of Objects is returned. The declaration must say just Object, because the Combinations class implements Enumeration, which declares that the nextElement() returns a plain Object. Users must cast the returned object to (Object).
Copyright © 2017. All Rights Reserved.