@Test public void testContainsComma() { Assert.assertTrue(StringPattern.recognize("test,").containsComma()); Assert.assertTrue(StringPattern.recognize("23,5").containsComma()); Assert.assertFalse(StringPattern.recognize("test./-1").containsComma()); }
public boolean containsComma() { return (pattern & CONTAINS_COMMA) > 0; }
StringPattern { public boolean containsComma() { return (pattern & CONTAINS_COMMA) > 0; } }
StringPattern { public boolean containsComma() { return (pattern & CONTAINS_COMMA) > 0; } private  StringPattern(int pattern, int digits); }
StringPattern { public boolean containsComma() { return (pattern & CONTAINS_COMMA) > 0; } private  StringPattern(int pattern, int digits); static StringPattern recognize(String token); boolean isAllLetter(); boolean isInitialCapitalLetter(); boolean isAllCapitalLetter(); boolean isAllLowerCaseLetter(); boolean isAllDigit(); boolean isAllHiragana(); boolean isAllKatakana(); int digits(); boolean containsPeriod(); boolean containsComma(); boolean containsSlash(); boolean containsDigit(); boolean containsHyphen(); boolean containsLetters(); }
StringPattern { public boolean containsComma() { return (pattern & CONTAINS_COMMA) > 0; } private  StringPattern(int pattern, int digits); static StringPattern recognize(String token); boolean isAllLetter(); boolean isInitialCapitalLetter(); boolean isAllCapitalLetter(); boolean isAllLowerCaseLetter(); boolean isAllDigit(); boolean isAllHiragana(); boolean isAllKatakana(); int digits(); boolean containsPeriod(); boolean containsComma(); boolean containsSlash(); boolean containsDigit(); boolean containsHyphen(); boolean containsLetters();  }