@Test public void testIsAllHiragana() { Assert.assertTrue(StringPattern.recognize("あぱっち・るしーん").isAllHiragana()); Assert.assertFalse(StringPattern.recognize("あぱっち・そふとうぇあ財団").isAllHiragana()); Assert.assertFalse(StringPattern.recognize("あぱっち・るしーんＶ１．０").isAllHiragana()); }
public boolean isAllHiragana() { return (pattern & ALL_HIRAGANA) > 0; }
StringPattern { public boolean isAllHiragana() { return (pattern & ALL_HIRAGANA) > 0; } }
StringPattern { public boolean isAllHiragana() { return (pattern & ALL_HIRAGANA) > 0; } private  StringPattern(int pattern, int digits); }
StringPattern { public boolean isAllHiragana() { return (pattern & ALL_HIRAGANA) > 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 isAllHiragana() { return (pattern & ALL_HIRAGANA) > 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();  }