We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14bf9c8 commit 84b0a3aCopy full SHA for 84b0a3a
API/src/main/java/io/github/jwdeveloper/tiktok/data/models/Picture.java
@@ -30,6 +30,7 @@
30
import java.awt.image.BufferedImage;
31
import java.io.*;
32
import java.net.URL;
33
+import java.util.Objects;
34
import java.util.concurrent.CompletableFuture;
35
36
public class Picture {
@@ -107,4 +108,14 @@ public Picture asUnsigned() {
107
108
public String toString() {
109
return "Picture{link='" + link + "', image=" + image + "}";
110
}
111
+
112
+ @Override
113
+ public final boolean equals(Object o) {
114
+ return o == this || o instanceof Picture picture && picture.link != null && picture.link.equals(link);
115
+ }
116
117
118
+ public int hashCode() {
119
+ return Objects.hashCode(link);
120
121
0 commit comments