Exemplo n.º 1
0
 @Override
 public PatternMatch matches(String str) {
   PatternMatch match = m1.matches(str);
   // done for short circuit
   if (match.isMatched()) {
     return match.and(m2.matches(str));
   } else {
     return match;
   }
 }
 @Override
 public PatternMatch matches(String str) {
   return PatternMatch.fromMatched(str.contains(containedString));
 }