-
Notifications
You must be signed in to change notification settings - Fork 331
Expand file tree
/
Copy pathExperimental.java
More file actions
47 lines (38 loc) · 1.31 KB
/
Experimental.java
File metadata and controls
47 lines (38 loc) · 1.31 KB
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
package datadog.crashtracking.dto;
import com.squareup.moshi.Json;
import java.util.List;
import java.util.Map;
import java.util.Objects;
public final class Experimental {
public final Map<String, String> ucontext;
@Json(name = "register_to_memory_mapping")
public final Map<String, String> registerToMemoryMapping;
@Json(name = "runtime_args")
public final List<String> runtimeArgs;
public Experimental(Map<String, String> ucontext) {
this(ucontext, null, null);
}
public Experimental(Map<String, String> ucontext, List<String> runtimeArgs) {
this(ucontext, null, runtimeArgs);
}
public Experimental(
Map<String, String> ucontext,
Map<String, String> registerToMemoryMapping,
List<String> runtimeArgs) {
this.ucontext = ucontext;
this.registerToMemoryMapping = registerToMemoryMapping;
this.runtimeArgs = runtimeArgs;
}
@Override
public boolean equals(Object o) {
if (!(o instanceof Experimental)) return false;
Experimental that = (Experimental) o;
return Objects.equals(ucontext, that.ucontext)
&& Objects.equals(registerToMemoryMapping, that.registerToMemoryMapping)
&& Objects.equals(runtimeArgs, that.runtimeArgs);
}
@Override
public int hashCode() {
return Objects.hash(ucontext, registerToMemoryMapping, runtimeArgs);
}
}