That fuck shit the fascists are using
1package org.tm.archive.util;
2
3import androidx.annotation.Nullable;
4import androidx.core.util.ObjectsCompat;
5
6public class Triple<A, B, C> {
7
8 private final A a;
9 private final B b;
10 private final C c;
11
12 public Triple(@Nullable A a, @Nullable B b, @Nullable C c) {
13 this.a = a;
14 this.b = b;
15 this.c = c;
16 }
17
18 public @Nullable A first() {
19 return a;
20 }
21
22 public @Nullable B second() {
23 return b;
24 }
25
26 public @Nullable C third() {
27 return c;
28 }
29
30 @Override
31 public boolean equals(Object o) {
32 if (!(o instanceof Triple)) {
33 return false;
34 }
35 Triple<?, ?, ?> t = (Triple<?, ?, ?>) o;
36 return ObjectsCompat.equals(t.a, a) && ObjectsCompat.equals(t.b, b) && ObjectsCompat.equals(t.c, c);
37 }
38
39 @Override
40 public int hashCode() {
41 return (a == null ? 0 : a.hashCode()) ^ (b == null ? 0 : b.hashCode()) ^ (c == null ? 0 : c.hashCode());
42 }
43}