-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalDiscovery.java
More file actions
103 lines (75 loc) · 1.95 KB
/
LocalDiscovery.java
File metadata and controls
103 lines (75 loc) · 1.95 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package wish;
import java.io.Serializable;
import java.util.Arrays;
/**
* Created by jeppe on 12/15/16.
*/
public class LocalDiscovery implements Serializable{
private String alias;
private String type;
private byte[] luid;
private byte[] ruid;
private byte[] rhid;
private byte[] pubkey;
private boolean claim;
public String getAlias() {
return alias;
}
public void setAlias(String alias) {
this.alias = alias;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public byte[] getLuid() {
return luid;
}
public void setLuid(byte[] luid) {
this.luid = luid;
}
public byte[] getRuid() {
return ruid;
}
public void setRuid(byte[] ruid) {
this.ruid = ruid;
}
public byte[] getRhid() {
return rhid;
}
public void setRhid(byte[] rhid) {
this.rhid = rhid;
}
public byte[] getPubkey() {
return pubkey;
}
public void setPubkey(byte[] pubkey) {
this.pubkey = pubkey;
}
public boolean isClaim() {
return claim;
}
public void setClaim(boolean claim) {
this.claim = claim;
}
public boolean equals(Object object) {
if (this == object) {
return true;
}
if (object == null) {
return false;
}
if (getClass() != object.getClass()) {
return false;
}
LocalDiscovery localDiscovery = (LocalDiscovery) object;
return Arrays.equals(luid, localDiscovery.getLuid())
&& Arrays.equals(ruid, localDiscovery.getRuid())
&& Arrays.equals(rhid, localDiscovery.getRhid())
&& Arrays.equals(pubkey, localDiscovery.getPubkey())
&& alias.equals(localDiscovery.getAlias())
&& type.equals(localDiscovery.getType());
}
}