File tree 1 file changed +2
-25
lines changed
src/main/java/io/tpd/kafkaexample
1 file changed +2
-25
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .fasterxml .jackson .annotation .JsonProperty ;
4
4
5
- public class PracticalAdvice {
6
- private final String message ;
7
- private final int identifier ;
8
-
9
- public PracticalAdvice (@ JsonProperty ("message" ) final String message ,
10
- @ JsonProperty ("identifier" ) final int identifier ) {
11
- this .message = message ;
12
- this .identifier = identifier ;
13
- }
14
-
15
- public String getMessage () {
16
- return message ;
17
- }
18
-
19
- public int getIdentifier () {
20
- return identifier ;
21
- }
22
-
23
- @ Override
24
- public String toString () {
25
- return "PracticalAdvice::toString() {" +
26
- "message='" + message + '\'' +
27
- ", identifier=" + identifier +
28
- '}' ;
29
- }
5
+ record PracticalAdvice (@ JsonProperty ("message" ) String message ,
6
+ @ JsonProperty ("identifier" ) int identifier ) {
30
7
}
You can’t perform that action at this time.
0 commit comments