public class WordCounter
{
String user;
- String word;
+ String key;
long counter;
public static WordCounter of(Word word, long counter)
{
- return new WordCounter(word.getUser(), word.getWord(), counter);
+ return new WordCounter(word.getChannel(), word.getKey(), counter);
}
}