public void forEach ( IntConsumer consumer ) { for ( int ii = 0 ; ii < array . length ; ii ++ ) { if ( array [ ii ] != 0 ) { int lim = Math . min ( bits , ( ii + 1 ) * 8 ) ; for ( int jj = ii * 8 ; jj < lim ; jj ++ ) { if ( isSet ( jj ) ) { consumer . accept ( jj ) ; } } } } }
For each set bet index .