-
Notifications
You must be signed in to change notification settings - Fork 0
/
Quote.java
49 lines (38 loc) · 1000 Bytes
/
Quote.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Quote.java
*
* Created on 2021-07-04, 6:47
*/
package com.marcnuri.demo.kmp.quote;
import io.quarkus.runtime.annotations.RegisterForReflection;
import java.io.Serializable;
import java.util.Objects;
@RegisterForReflection
public class Quote implements Serializable {
private static final long serialVersionUID = 6301596552055083396L;
private String content;
private String author;
String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Quote quote = (Quote) o;
return Objects.equals(content, quote.content) && Objects.equals(author, quote.author);
}
@Override
public int hashCode() {
return Objects.hash(content, author);
}
}