1 package de.juplo.kafka.wordcount.counter;
3 import lombok.AllArgsConstructor;
5 import lombok.NoArgsConstructor;
10 @AllArgsConstructor(staticName = "of")
11 public class WordCounter
17 public static WordCounter of(Word word, long counter)
19 return new WordCounter(word.getUser(), word.getWord(), counter);