question: public boolean hasNext ( int index ) { for ( int p = 0 ; p < mask . length ; p ++ ) { if ( mask [ p ] ) { if ( index <= lastElementIndex [ p ] ) { return true ; } } } return false ; }
target:  Returns true if the last possible index stored in lastElementIndex for all currently selected partitions is not yet reached. Might be used to prune iterations (especially useful for linear partitions).