*/
public class RandomAddAll {
public static void RandomAddAll(PasswordResults toBeWrapped) {
CharSequence chars = toBeWrapped.getCharSequence();
RandomPattern randomPatternFinder = new RandomPattern();
for (int i = 0, length = chars.length(); i < length; i++) {
for (int j = i + 1; j <= length; j++) {
PasswordPattern random = randomPatternFinder.getRandomPattern(chars, i, j - i);
toBeWrapped.foundPattern(random);
}
}
}