@Test public void getWords () { Note note = getNote(1L, "这是中文测试", "這是中文測試\n これは日本語のテストです"); assertEquals(24, new IdeogramsWordCounter().countWords(note)); note.setTitle("这"); assertEquals(19, new IdeogramsWordCounter().countWords(note)); }
@Override public int countWords (Note note) { return countChars(note); }
IdeogramsWordCounter implements WordCounter { @Override public int countWords (Note note) { return countChars(note); } }
IdeogramsWordCounter implements WordCounter { @Override public int countWords (Note note) { return countChars(note); }  }
IdeogramsWordCounter implements WordCounter { @Override public int countWords (Note note) { return countChars(note); }  @Override int countWords(Note note); @Override int countChars(Note note); }
IdeogramsWordCounter implements WordCounter { @Override public int countWords (Note note) { return countChars(note); }  @Override int countWords(Note note); @Override int countChars(Note note);  }