private boolean isValid ( ) { StringBuilder builder = new StringBuilder ( ) ; for ( Match match : matches ) { builder . append ( match . getToken ( ) ) ; } return password . equals ( builder . toString ( ) ) ; }
Checks if the sum of the matches equals the original password .