KanjidicEntry extends DictEntry { public static String removeSplits(final String str) { return str.replace("-", "").replace(".", ""); } KanjidicEntry(final String kanji, final String reading, final String english, final int radical, final int strokes, final String skip, final Integer grade); Integer getJlpt(); char getKanji(); List<String> getOnyomi(); List<String> getKunyomi(); List<String> getNamae(); List<String> getEnglish(); static String removeSplits(final String str); final int radical; final int strokes; final String skip; final Integer grade; }
@Test public void testRemoveSplits() { assertEquals("いとしい", KanjidicEntry.removeSplits("いと.しい")); assertEquals("かた", KanjidicEntry.removeSplits("-かた")); }