KanjiUtils { public static boolean isHalfwidth(final char ch) { return HALFWIDTH_TO_KATAKANA.containsKey(String.valueOf(ch)); } private  KanjiUtils(); static boolean isHiragana(char c); static boolean isKatakana(char c); static String halfwidthToKatakana(final String halfwidth); static String toHalfwidth(final String katakana); static boolean isHalfwidth(final char ch); static boolean isKana(char ch); static boolean isKanji(char ch); static boolean isJapaneseChar(final char ch); static int getCommonality(final char ch); static int getCommonality(final String str); static Integer getJlptLevel(final Character kanji); static String getJlptKanjis(final int level); static final Map<KanjiQuiz, String> QUIZ_TABLE; }
@Test public void testHalfwidthKatakana() { assertFalse(KanjiUtils.isHalfwidth('艦')); assertFalse(KanjiUtils.isHalfwidth('か')); assertFalse(KanjiUtils.isHalfwidth('キ')); assertTrue(KanjiUtils.isHalfwidth('ｶ')); }