counter: 1.2.12 - Renamed `WordCount` into `WordCounter` -- ALIGN
[demos/kafka/wordcount] / src / main / java / de / juplo / kafka / wordcount / counter / WordCounter.java
index 958f9b7..1334e5b 100644 (file)
@@ -8,14 +8,14 @@ import lombok.NoArgsConstructor;
 @Data
 @NoArgsConstructor
 @AllArgsConstructor(staticName = "of")
-public class WordCount
+public class WordCounter
 {
   String user;
   String word;
-  long count;
+  long counter;
 
-  public static WordCount of(Word word, long count)
+  public static WordCounter of(Word word, long counter)
   {
-    return new WordCount(word.getUser(), word.getWord(), count);
+    return new WordCounter(word.getUser(), word.getWord(), counter);
   }
 }